Class DynamicTableRecordGenerator
java.lang.Object
org.apache.iceberg.flink.sink.dynamic.DynamicTableRecordGenerator
- All Implemented Interfaces:
Serializable,DynamicRecordGenerator<org.apache.flink.table.data.RowData>
- Direct Known Subclasses:
VariantAvroDynamicTableRecordGenerator
public abstract class DynamicTableRecordGenerator
extends Object
implements DynamicRecordGenerator<org.apache.flink.table.data.RowData>
Abstract base class for SQL-based dynamic record generators. Users will extend this class to
create a DynamicRecord from RowData.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicTableRecordGenerator(org.apache.flink.table.types.logical.RowType rowType) DynamicTableRecordGenerator(org.apache.flink.table.types.logical.RowType rowType, Map<String, String> writeProperties, org.apache.flink.configuration.Configuration flinkConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected FlinkDynamicSinkConfvoidopen(org.apache.flink.api.common.functions.OpenContext openContext) protected org.apache.flink.table.types.logical.RowTyperowType()protected voidvalidateRequiredColumnAndType(String columnName, org.apache.flink.table.types.logical.LogicalType expectedType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.flink.sink.dynamic.DynamicRecordGenerator
generate
-
Constructor Details
-
DynamicTableRecordGenerator
public DynamicTableRecordGenerator(org.apache.flink.table.types.logical.RowType rowType) -
DynamicTableRecordGenerator
-
-
Method Details
-
open
- Specified by:
openin interfaceDynamicRecordGenerator<org.apache.flink.table.data.RowData>- Throws:
Exception
-
rowType
protected org.apache.flink.table.types.logical.RowType rowType() -
flinkDynamicSinkConf
-
fieldNameToPosition
-
validateRequiredColumnAndType
protected void validateRequiredColumnAndType(String columnName, org.apache.flink.table.types.logical.LogicalType expectedType)
-