Class DataColumnGenerator
- All Implemented Interfaces:
DataGenerator<String>
Generates 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.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe TPC-C "original" data marker embedded in 10% of generated values.Fields inherited from class AbstractDataGenerator
random, randomUtils -
Method Summary
Methods inherited from class AbstractDataGenerator
generateAndSet, generateAsString, reseed, set
-
Field Details
-
ORIGINAL
The TPC-C "original" data marker embedded in 10% of generated values.- See Also:
-
-
Method Details
-
generate
Description copied from interface:DataGeneratorGenerates a random value of type T.- Returns:
- a generated value, may be null if the generator supports nullable columns
-
get
Description copied from interface:DataGeneratorRetrieves a value from a ResultSet column.- Parameters:
resultSet- the result set to read fromcolumnIndex- the 1-based column index- Returns:
- the value from the result set, properly cast to type T
- Throws:
SQLException- if the database operation fails
-