Package io.bloviate.gen
package io.bloviate.gen
-
ClassDescriptionAbstract base class for data generator builders.Abstract base class providing common functionality for data generators.Generates
BigDecimalvalues sized to a column's declared precision and scale using the seeded random source, so a given seed yields a reproducible sequence.Fluent builder forBigDecimalGenerator.Generates a single bit as anIntegerthat is either0or1, chosen uniformly using the seeded random source (so a given seed yields a reproducible sequence).Fluent builder forBitGenerator.Generates a string of'0'and'1'characters for SQLBIT/VARBITcolumns, e.g.Fluent builder forBitStringGenerator.Generator for Boolean values.Builder for creating BooleanGenerator instances.Builder<T>Builder interface for creating data generator instances.Generates an array of randomBytes using the seeded random source, so a given seed yields a reproducible sequence.Fluent builder forByteGenerator.Generates a single lowercase ASCII letter ('a'through'z') chosen uniformly using the seeded random source, so a given seed yields a reproducible sequence.Fluent builder forCharacterGenerator.Deterministic mapping from a parent row's global (row-major) index to the number of child rows it owns, drawn from the inclusive range[minChildren, maxChildren].Emits a parent table's "number of children" column under variable parent-child cardinality: for the k-th row (0-based) it returnscardinality.count(k)(for example TPC-C'so_ol_cnt).Builder forChildCountGenerator.Emits one component of a child table's composite key when each parent has a variable number of children (seeChildCardinality), which the fixed-cardinalityCompositeKeyComponentGeneratorcannot express.Builder forChildKeyComponentGenerator.Generates IPv4 CIDR network specifications of the forma.b.c.0/24.Fluent builder forCidrGenerator.Generates one component (dimension) of a row-ordered cartesian product, which is what is needed to populate composite primary/foreign keys densely and without collisions.Builder forCompositeKeyComponentGenerator.Generates the current timestamp at the moment of generation.Fluent builder forCurrentSqlTimestampGenerator.Core interface for generating test data for database columns.Generates randomDatevalues drawn uniformly from a millisecond instant in the half-open range[start, end)(start inclusive, end exclusive).Builder forDateGeneratorinstances.Generatesdoublevalues drawn uniformly from the half-open range[startInclusive, endExclusive)using the seeded random source, so a given seed yields a reproducible sequence.Fluent builder forDoubleGenerator.Generatesfloatvalues drawn uniformly from the half-open range[startInclusive, endExclusive)using the seeded random source, so a given seed yields a reproducible sequence.Fluent builder forFloatGenerator.Emits a deterministic random permutation of[start, start + groupSize)within each consecutive run ofgroupSizerows, advancing to a fresh permutation for the next group.Builder forGroupedPermutationGenerator.Populates a column only for the firstprefixSizerows of each consecutive group ofgroupSizerows, emittingnullfor the remainder.Builder forGroupedPrefixGenerator.ADataGeneratorwhose value for a row is a deterministic function of that row's absolute (0-based) index, so it can be positioned to any row without replaying every precedinggenerate()call.Generates IPv4 host addresses as a dotted-quadString, e.g.Fluent builder forInetGenerator.Generates randomInstantvalues drawn uniformly from a millisecond instant in the half-open range[start, end)(start inclusive, end exclusive).Builder forInstantGeneratorinstances.Generates a fixed-lengthInteger[]whose elements are unbounded randomintvalues, bound to JDBC arrays of SQL typeINTEGER.Fluent builder forIntegerArrayGenerator.Generatesintvalues drawn uniformly from the half-open range[startInclusive, endExclusive)using the seeded random source, so a given seed yields a reproducible sequence.Fluent builder forIntegerGenerator.Generates time spans as aStringin PostgreSQLintervalinput form,years-months days hours:minutes:seconds, e.g.Fluent builder forIntervalGenerator.Generator for JSON / JSONB columns.Fluent builder forJsonbGenerator.Generateslongvalues drawn uniformly from the half-open range[startInclusive, endExclusive)using the seeded random source, so a given seed yields a reproducible sequence.Fluent builder forLongGenerator.Generates MAC addresses as colon-separated hex octets, e.g.Fluent builder forMacAddressGenerator.Generatesdoublevalues from a normal (Gaussian) distribution with the configured mean and standard deviation, clamped to the inclusive range[min, max].Builds aNormalDoubleGenerator, defaulting to a standard normal distribution (mean 0, standard deviation 1) with effectively unboundedmin/max.Generatesintvalues from a normal (Gaussian) distribution with the configured mean and standard deviation, rounded to the nearest integer and clamped to the inclusive range[min, max].Builds aNormalIntegerGenerator, defaulting to a standard normal distribution (mean 0, standard deviation 1) spanning the fullintrange.Generates aBigDecimaldrawn uniformly from the half-open range[startInclusive, endExclusive)and rounded (HALF_UP) to a fixedscale.Fluent builder forScaledBigDecimalGenerator.Generates a monotonically increasing sequence of integers over the inclusive range[startInclusive, endInclusive], wrapping back to the start after the end is emitted.Fluent builder forSequentialIntegerGenerator.Generatesshortvalues drawn uniformly from the half-open range[startInclusive, endExclusive)using the seeded random source, so a given seed yields a reproducible sequence.Fluent builder forShortGenerator.Generates fixed-length random strings.Builder forSimpleStringGeneratorinstances.Fluent builder forSkewedTimestampGenerator.Generator for SQLBLOB(binary large object) columns.Fluent builder forSqlBlobGenerator.Generator for SQLCLOB(character large object) columns.Fluent builder forSqlClobGenerator.Generates randomDatevalues for binding to JDBCDATEcolumns, drawn uniformly from a millisecond instant in the half-open range[start, end)(start inclusive, end exclusive).Builder forSqlDateGeneratorinstances.Generator for SQLSTRUCT(structured / user-defined type) columns.Fluent builder forSqlStructGenerator.Generates randomTimevalues for binding to JDBCTIMEcolumns, drawn uniformly from a millisecond instant in the half-open range[start, end)(start inclusive, end exclusive).Builder forSqlTimeGeneratorinstances.Generates randomTimestampvalues for binding to JDBCTIMESTAMPcolumns, drawn uniformly from a millisecond instant in the half-open range[start, end)(start inclusive, end exclusive).Builder forSqlTimestampGeneratorinstances.Always generates the same configuredBigDecimalvalue.Fluent builder forStaticBigDecimalGenerator.Always generates the same configured double value.Fluent builder forStaticDoubleGenerator.Always generates the same configured float value.Fluent builder forStaticFloatGenerator.Always generates the same configured integer value.Fluent builder forStaticIntegerGenerator.Always generates the same configured string value.Builder forStaticStringGeneratorinstances.Generates a fixed-lengthString[]whose elements are random alphabetic strings, bound to JDBC arrays of SQL typeVARCHAR.Fluent builder forStringArrayGenerator.Generator for UUID (Universally Unique Identifier) values.Builder for creating UUIDGenerator instances.Generates strings whose length varies randomly within an inclusive[minLength, maxLength]range.Builder forVariableStringGeneratorinstances.Draws from a fixed set of values according to per-value weights — a categorical distribution.Fluent builder forWeightedCategoricalGenerator.Generates small well-formed XML documents, e.g.Fluent builder forXmlGenerator.Generates integers from a Zipfian (power-law) distribution oversizeconsecutive values starting atstart: rank k (1-based) has probability proportional to1 / k^exponent, so the lowest values are by far the most frequent and the tail is long and thin.Fluent builder forZipfianIntegerGenerator.