Class OrderLineDeliveryDateGenerator.Builder
java.lang.Object
io.bloviate.gen.AbstractBuilder<Timestamp>
io.bloviate.gen.tpcc.OrderLineDeliveryDateGenerator.Builder
- Enclosing class:
OrderLineDeliveryDateGenerator
Builds
OrderLineDeliveryDateGenerator instances.-
Field Summary
Fields inherited from class AbstractBuilder
DEFAULT_REFERENCE, random -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns a configured data generator.cardinality(ChildCardinality cardinality) Sets the shared per-order line-count cardinality (required).deliveredThreshold(int deliveredThreshold) Orders witho_id <= deliveredThresholdare delivered (timestamp); the rest are undelivered (NULL).ordersPerDistrict(int ordersPerDistrict) Sets the number of orders per district, used to wrap the parento_idwalker.
-
Constructor Details
-
Builder
Creates a builder.- Parameters:
random- the random generator to seed the generator with
-
-
Method Details
-
cardinality
Sets the shared per-order line-count cardinality (required).- Parameters:
cardinality- theChildCardinalityshared with theorder_linekeys- Returns:
- this builder
-
ordersPerDistrict
Sets the number of orders per district, used to wrap the parento_idwalker.- Parameters:
ordersPerDistrict- the number of orders per district- Returns:
- this builder
-
deliveredThreshold
Orders witho_id <= deliveredThresholdare delivered (timestamp); the rest are undelivered (NULL). For TPC-C this isordersPerDistrict - newOrdersPerDistrict.- Parameters:
deliveredThreshold- the highesto_idconsidered delivered- Returns:
- this builder
-
build
Description copied from interface:BuilderBuilds and returns a configured data generator.- Returns:
- a new
DataGeneratorconfigured with the builder's settings
-