Package io.pravega.connectors.flink
Class Pravega.TableSinkWriterBuilder<T extends AbstractStreamingWriterBuilder>
- java.lang.Object
-
- io.pravega.connectors.flink.AbstractWriterBuilder<B>
-
- io.pravega.connectors.flink.AbstractStreamingWriterBuilder<org.apache.flink.types.Row,Pravega.TableSinkWriterBuilder>
-
- io.pravega.connectors.flink.Pravega.TableSinkWriterBuilder<T>
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Pravega
public static class Pravega.TableSinkWriterBuilder<T extends AbstractStreamingWriterBuilder> extends AbstractStreamingWriterBuilder<org.apache.flink.types.Row,Pravega.TableSinkWriterBuilder>
Writer builder which can be used to define the Pravega writer configurations. The supplied configurations will be used to create appropriate Table sink implementation.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class io.pravega.connectors.flink.AbstractStreamingWriterBuilder
DEFAULT_TXN_LEASE_RENEWAL_PERIOD_MILLIS, enableWatermark, txnLeaseRenewalPeriod, writerMode
-
-
Constructor Summary
Constructors Constructor Description TableSinkWriterBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Pravega.TableSinkWriterBuilder
builder()
protected FlinkPravegaOutputFormat<org.apache.flink.types.Row>
createOutputFormat(FlinkPravegaTableSink.TableSinkConfiguration configuration)
Creates FlinkPravegaOutputFormat based on the given table sink configuration and current builder state.protected FlinkPravegaWriter<org.apache.flink.types.Row>
createSinkFunction(FlinkPravegaTableSink.TableSinkConfiguration configuration)
Creates the sink function based on the given table sink configuration and current builder state.Pravega.TableSinkWriterBuilder
withRoutingKeyField(java.lang.String fieldName)
Sets the field name to use as a Pravega event routing key.Pravega.TableSinkWriterBuilder
withSerializationSchema(org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.types.Row> serializationSchema)
Pass the serialization schema to be used.-
Methods inherited from class io.pravega.connectors.flink.AbstractStreamingWriterBuilder
enableWatermark, withTxnLeaseRenewalPeriod, withWriterMode
-
Methods inherited from class io.pravega.connectors.flink.AbstractWriterBuilder
enableMetrics, forStream, forStream, getPravegaConfig, isMetricsEnabled, resolveStream, withPravegaConfig
-
-
-
-
Method Detail
-
withRoutingKeyField
public Pravega.TableSinkWriterBuilder withRoutingKeyField(java.lang.String fieldName)
Sets the field name to use as a Pravega event routing key.- Parameters:
fieldName
- the field name.
-
withSerializationSchema
public Pravega.TableSinkWriterBuilder withSerializationSchema(org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.types.Row> serializationSchema)
Pass the serialization schema to be used.- Parameters:
serializationSchema
- the serialization schema.
-
builder
protected Pravega.TableSinkWriterBuilder builder()
- Specified by:
builder
in classAbstractWriterBuilder<Pravega.TableSinkWriterBuilder>
-
createSinkFunction
protected FlinkPravegaWriter<org.apache.flink.types.Row> createSinkFunction(FlinkPravegaTableSink.TableSinkConfiguration configuration)
Creates the sink function based on the given table sink configuration and current builder state.- Parameters:
configuration
- the table sink configuration, incl. projected fields
-
createOutputFormat
protected FlinkPravegaOutputFormat<org.apache.flink.types.Row> createOutputFormat(FlinkPravegaTableSink.TableSinkConfiguration configuration)
Creates FlinkPravegaOutputFormat based on the given table sink configuration and current builder state.- Parameters:
configuration
- the table sink configuration, incl. projected fields
-
-