Uses of Interface
io.bloviate.gen.DataGenerator
Packages that use DataGenerator
Package
Description
-
Uses of DataGenerator in io.bloviate.datafaker
Classes in io.bloviate.datafaker that implement DataGeneratorModifier and TypeClassDescriptionclassfinal classEmits one field of aRowContext's per-row entity. -
Uses of DataGenerator in io.bloviate.db
Methods in io.bloviate.db that return DataGeneratorModifier and TypeMethodDescriptionColumnGeneratorFactory.create(RandomGenerator random) Creates the generator for the configured column. -
Uses of DataGenerator in io.bloviate.ext
Methods in io.bloviate.ext that return DataGeneratorModifier and TypeMethodDescriptionGeneratorFactory.create(Column column, RandomGenerator random) Creates a generator for the given column.final DataGenerator<?> AbstractDatabaseSupport.getDataGenerator(Column column, RandomGenerator random) DatabaseSupport.getDataGenerator(Column column, RandomGenerator random) Creates an appropriate data generator for the given column based on itsJDBCType(and, where relevant, its database-specific type name).GeneratorRegistry.resolve(Column column, RandomGenerator random) Resolves the custom generator for a column, honouring the documented precedence (name pattern > vendor typeName > JDBCType). -
Uses of DataGenerator in io.bloviate.file
Methods in io.bloviate.file that return DataGeneratorModifier and TypeMethodDescriptionColumnDefinition.dataGenerator()Returns the value of thedataGeneratorrecord component.Constructors in io.bloviate.file with parameters of type DataGeneratorModifierConstructorDescriptionColumnDefinition(String name, DataGenerator<?> dataGenerator) Creates an instance of aColumnDefinitionrecord class. -
Uses of DataGenerator in io.bloviate.gen
Classes in io.bloviate.gen that implement DataGeneratorModifier and TypeClassDescriptionclassAbstract base class providing common functionality for data generators.classGeneratesBigDecimalvalues sized to a column's declared precision and scale using the seeded random source, so a given seed yields a reproducible sequence.classGenerates a single bit as anIntegerthat is either0or1, chosen uniformly using the seeded random source (so a given seed yields a reproducible sequence).classGenerates a string of'0'and'1'characters for SQLBIT/VARBITcolumns, e.g.classGenerator for Boolean values.classGenerates an array of randomBytes using the seeded random source, so a given seed yields a reproducible sequence.classGenerates a single lowercase ASCII letter ('a'through'z') chosen uniformly using the seeded random source, so a given seed yields a reproducible sequence.classEmits 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).classEmits one component of a child table's composite key when each parent has a variable number of children (seeChildCardinality), which the fixed-cardinalityCompositeKeyComponentGeneratorcannot express.classGenerates IPv4 CIDR network specifications of the forma.b.c.0/24.classGenerates one component (dimension) of a row-ordered cartesian product, which is what is needed to populate composite primary/foreign keys densely and without collisions.classGenerates the current timestamp at the moment of generation.classGenerates randomDatevalues drawn uniformly from a millisecond instant in the half-open range[start, end)(start inclusive, end exclusive).classGeneratesdoublevalues drawn uniformly from the half-open range[startInclusive, endExclusive)using the seeded random source, so a given seed yields a reproducible sequence.classGeneratesfloatvalues drawn uniformly from the half-open range[startInclusive, endExclusive)using the seeded random source, so a given seed yields a reproducible sequence.classEmits a deterministic random permutation of[start, start + groupSize)within each consecutive run ofgroupSizerows, advancing to a fresh permutation for the next group.classPopulates a column only for the firstprefixSizerows of each consecutive group ofgroupSizerows, emittingnullfor the remainder.classGenerates IPv4 host addresses as a dotted-quadString, e.g.classGenerates randomInstantvalues drawn uniformly from a millisecond instant in the half-open range[start, end)(start inclusive, end exclusive).classGenerates a fixed-lengthInteger[]whose elements are unbounded randomintvalues, bound to JDBC arrays of SQL typeINTEGER.classGeneratesintvalues drawn uniformly from the half-open range[startInclusive, endExclusive)using the seeded random source, so a given seed yields a reproducible sequence.classGenerates time spans as aStringin PostgreSQLintervalinput form,years-months days hours:minutes:seconds, e.g.classGenerator for JSON / JSONB columns.classGenerateslongvalues drawn uniformly from the half-open range[startInclusive, endExclusive)using the seeded random source, so a given seed yields a reproducible sequence.classGenerates MAC addresses as colon-separated hex octets, e.g.classGeneratesdoublevalues from a normal (Gaussian) distribution with the configured mean and standard deviation, clamped to the inclusive range[min, max].classGeneratesintvalues 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].classGenerates aBigDecimaldrawn uniformly from the half-open range[startInclusive, endExclusive)and rounded (HALF_UP) to a fixedscale.classGenerates a monotonically increasing sequence of integers over the inclusive range[startInclusive, endInclusive], wrapping back to the start after the end is emitted.classGeneratesshortvalues drawn uniformly from the half-open range[startInclusive, endExclusive)using the seeded random source, so a given seed yields a reproducible sequence.classGenerates fixed-length random strings.classclassGenerator for SQLBLOB(binary large object) columns.classGenerator for SQLCLOB(character large object) columns.classGenerates randomDatevalues for binding to JDBCDATEcolumns, drawn uniformly from a millisecond instant in the half-open range[start, end)(start inclusive, end exclusive).classGenerator for SQLSTRUCT(structured / user-defined type) columns.classGenerates randomTimevalues for binding to JDBCTIMEcolumns, drawn uniformly from a millisecond instant in the half-open range[start, end)(start inclusive, end exclusive).classGenerates randomTimestampvalues for binding to JDBCTIMESTAMPcolumns, drawn uniformly from a millisecond instant in the half-open range[start, end)(start inclusive, end exclusive).classAlways generates the same configuredBigDecimalvalue.classAlways generates the same configured double value.classAlways generates the same configured float value.classAlways generates the same configured integer value.classAlways generates the same configured string value.classGenerates a fixed-lengthString[]whose elements are random alphabetic strings, bound to JDBC arrays of SQL typeVARCHAR.classGenerator for UUID (Universally Unique Identifier) values.classGenerates strings whose length varies randomly within an inclusive[minLength, maxLength]range.classDraws from a fixed set of values according to per-value weights — a categorical distribution.classGenerates small well-formed XML documents, e.g.classGenerates 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.Methods in io.bloviate.gen that return DataGeneratorModifier and TypeMethodDescriptionBuilder.build()Builds and returns a configured data generator.Methods in io.bloviate.gen with parameters of type DataGeneratorModifier and TypeMethodDescriptionGroupedPrefixGenerator.Builder.delegate(DataGenerator<T> delegate) The wrapped generator that supplies the value for each prefix (non-null) row; it is consulted only on prefix rows, never for the null tail, so a stateless delegate is recommended. -
Uses of DataGenerator in io.bloviate.gen.tpcc
Classes in io.bloviate.gen.tpcc that implement DataGeneratorModifier and TypeClassDescriptionclassGenerates the TPC-C customer credit rating (clause 4.3.2.7): "GC" (good credit) 90% of the time and "BC" (bad credit) 10% of the time.classGenerates TPC-C customer last names (clause 4.3.2.3): three concatenated syllables selected from a fixed set by a number in[0, 999].classGenerates the TPC-C i_data / s_data values (clause 4.3.3.1): a random alphabetic string of length 26..50 that, 10% of the time, contains the literal "ORIGINAL" at a random position.classGeneratesol_delivery_dfor theorder_linetable under variable order-line cardinality: a delivery timestamp for the lines of delivered orders, andNULLfor the lines of the most recent (undelivered) orders.classGenerates TPC-C zip codes (clause 4.3.2.7): four random digits followed by the constant suffix "11111", producing a 9-character value.