Class UniformIntegerValueGenerator
- java.lang.Object
-
- com.twilio.kudu.dataloader.generator.ColumnValueGenerator
-
- com.twilio.kudu.dataloader.generator.SingleColumnValueGenerator<Integer>
-
- com.twilio.kudu.dataloader.generator.UniformIntegerValueGenerator
-
public class UniformIntegerValueGenerator extends SingleColumnValueGenerator<Integer>
-
-
Constructor Summary
Constructors Constructor Description UniformIntegerValueGenerator(int minVal, int maxVal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getColumnValue()
Generates a int value between [minValue, maxValue)void
initialize()
Initialize theColumnValueGenerator
from JSON or other files.-
Methods inherited from class com.twilio.kudu.dataloader.generator.SingleColumnValueGenerator
getColumnValue
-
-
-
-
Method Detail
-
getColumnValue
public Integer getColumnValue()
Generates a int value between [minValue, maxValue)- Specified by:
getColumnValue
in classSingleColumnValueGenerator<Integer>
-
initialize
public void initialize()
Description copied from class:ColumnValueGenerator
Initialize theColumnValueGenerator
from JSON or other files. Used as a alternative constructor- Specified by:
initialize
in classColumnValueGenerator
-
-