Class DecimalDataRandomGenerator
java.lang.Object
org.apache.flink.connector.datagen.table.types.DecimalDataRandomGenerator
- All Implemented Interfaces:
Serializable,Iterator<org.apache.flink.table.data.DecimalData>,org.apache.flink.streaming.api.functions.source.datagen.DataGenerator<org.apache.flink.table.data.DecimalData>
@Internal
public class DecimalDataRandomGenerator
extends Object
implements org.apache.flink.streaming.api.functions.source.datagen.DataGenerator<org.apache.flink.table.data.DecimalData>
Generates random
DecimalData values.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDecimalDataRandomGenerator(int precision, int scale, double min, double max, float nullRate) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.streaming.api.functions.source.datagen.DataGenerator
snapshotStateMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
DecimalDataRandomGenerator
public DecimalDataRandomGenerator(int precision, int scale, double min, double max, float nullRate)
-
-
Method Details
-
open
public void open(String name, org.apache.flink.runtime.state.FunctionInitializationContext context, org.apache.flink.api.common.functions.RuntimeContext runtimeContext) throws Exception - Specified by:
openin interfaceorg.apache.flink.streaming.api.functions.source.datagen.DataGenerator<org.apache.flink.table.data.DecimalData>- Throws:
Exception
-
hasNext
public boolean hasNext() -
next
public org.apache.flink.table.data.DecimalData next()
-