@Internal public class DecimalDataRandomGenerator extends Object implements DataGenerator<DecimalData>
DecimalData
values.Constructor and Description |
---|
DecimalDataRandomGenerator(int precision,
int scale,
double min,
double max,
float nullRate) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
DecimalData |
next() |
void |
open(String name,
FunctionInitializationContext context,
RuntimeContext runtimeContext)
Open and initialize state for
DataGenerator . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
snapshotState
forEachRemaining, remove
public DecimalDataRandomGenerator(int precision, int scale, double min, double max, float nullRate)
public void open(String name, FunctionInitializationContext context, RuntimeContext runtimeContext) throws Exception
DataGenerator
DataGenerator
. See CheckpointedFunction.initializeState(org.apache.flink.runtime.state.FunctionInitializationContext)
.open
in interface DataGenerator<DecimalData>
name
- The state of DataGenerator
should related to this name, make sure the
name of state is different.Exception
public boolean hasNext()
hasNext
in interface Iterator<DecimalData>
public DecimalData next()
next
in interface Iterator<DecimalData>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.