Class RandomGeneratorVisitor
- java.lang.Object
-
- org.apache.flink.table.types.logical.utils.LogicalTypeDefaultVisitor<DataGeneratorContainer>
-
- org.apache.flink.connector.datagen.table.DataGenVisitorBase
-
- org.apache.flink.connector.datagen.table.RandomGeneratorVisitor
-
- All Implemented Interfaces:
LogicalTypeVisitor<DataGeneratorContainer>
@Internal public class RandomGeneratorVisitor extends DataGenVisitorBase
Creates a randomDataGeneratorContainer
for a particular logical type.
-
-
Field Summary
Fields Modifier and Type Field Description static int
RANDOM_BYTES_LENGTH_DEFAULT
static int
RANDOM_STRING_LENGTH_DEFAULT
-
Fields inherited from class org.apache.flink.connector.datagen.table.DataGenVisitorBase
config, name
-
-
Constructor Summary
Constructors Constructor Description RandomGeneratorVisitor(String name, ReadableConfig config)
-
Method Summary
-
Methods inherited from class org.apache.flink.connector.datagen.table.DataGenVisitorBase
visit, visit
-
-
-
-
Field Detail
-
RANDOM_STRING_LENGTH_DEFAULT
public static final int RANDOM_STRING_LENGTH_DEFAULT
- See Also:
- Constant Field Values
-
RANDOM_BYTES_LENGTH_DEFAULT
public static final int RANDOM_BYTES_LENGTH_DEFAULT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RandomGeneratorVisitor
public RandomGeneratorVisitor(String name, ReadableConfig config)
-
-
Method Detail
-
visit
public DataGeneratorContainer visit(BooleanType booleanType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(CharType charType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(VarCharType varCharType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(BinaryType binaryType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(VarBinaryType varBinaryType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(TinyIntType tinyIntType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(SmallIntType smallIntType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(IntType integerType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(BigIntType bigIntType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(FloatType floatType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(DoubleType doubleType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(DecimalType decimalType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(YearMonthIntervalType yearMonthIntervalType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(DayTimeIntervalType dayTimeIntervalType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(TimestampType timestampType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(ZonedTimestampType zonedTimestampType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(LocalZonedTimestampType localZonedTimestampType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(ArrayType arrayType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(MultisetType multisetType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(MapType mapType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(RowType rowType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
defaultMethod
protected DataGeneratorContainer defaultMethod(LogicalType logicalType)
- Overrides:
defaultMethod
in classDataGenVisitorBase
-
-