java.lang.Object
me.ahoo.cosid.runtime.GeneratorSpec.Segment.Builder
- Enclosing class:
GeneratorSpec.Segment
Builds a
GeneratorSpec.Segment.-
Method Summary
Modifier and TypeMethodDescriptionbatch(BatchPolicy batch) Sets the batch policy.build()Builds the generator.Sets the codec list, applied in order.
-
Method Details
-
batch
Sets the batch policy.- Parameters:
batch- the policy; defaultBatchPolicy.DEFAULT- Returns:
- this builder
-
codec
Sets the codec list, applied in order.- Parameters:
codec- the codec list; default empty, for none- Returns:
- this builder
-
build
Builds the generator.- Returns:
- the generator
-