Class DataGenVisitorBase
- java.lang.Object
-
- org.apache.flink.table.types.logical.utils.LogicalTypeDefaultVisitor<DataGeneratorContainer>
-
- org.apache.flink.connector.datagen.table.DataGenVisitorBase
-
- All Implemented Interfaces:
LogicalTypeVisitor<DataGeneratorContainer>
- Direct Known Subclasses:
RandomGeneratorVisitor
,SequenceGeneratorVisitor
@Internal public abstract class DataGenVisitorBase extends LogicalTypeDefaultVisitor<DataGeneratorContainer>
Base class for translatingLogicalTypes
toDataGeneratorContainer
's.
-
-
Field Summary
Fields Modifier and Type Field Description protected ReadableConfig
config
protected String
name
-
Constructor Summary
Constructors Modifier Constructor Description protected
DataGenVisitorBase(String name, ReadableConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DataGeneratorContainer
defaultMethod(LogicalType logicalType)
DataGeneratorContainer
visit(DateType dateType)
DataGeneratorContainer
visit(TimeType timeType)
-
-
-
Field Detail
-
name
protected final String name
-
config
protected final ReadableConfig config
-
-
Constructor Detail
-
DataGenVisitorBase
protected DataGenVisitorBase(String name, ReadableConfig config)
-
-
Method Detail
-
visit
public DataGeneratorContainer visit(DateType dateType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
visit
public DataGeneratorContainer visit(TimeType timeType)
- Specified by:
visit
in interfaceLogicalTypeVisitor<DataGeneratorContainer>
- Overrides:
visit
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
defaultMethod
protected DataGeneratorContainer defaultMethod(LogicalType logicalType)
- Specified by:
defaultMethod
in classLogicalTypeDefaultVisitor<DataGeneratorContainer>
-
-