Class FlinkPravegaTableSink.AbstractTableSinkBuilder<B extends FlinkPravegaTableSink.AbstractTableSinkBuilder>

    • Constructor Detail

      • AbstractTableSinkBuilder

        public AbstractTableSinkBuilder()
    • Method Detail

      • withRoutingKeyField

        public B withRoutingKeyField​(java.lang.String fieldName)
        Sets the field name to use as a Pravega event routing key. Each row is written to a Pravega stream with a routing key based on the given field name. The specified field must of type STRING.
        Parameters:
        fieldName - the field name.
      • getSerializationSchema

        protected abstract org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.types.Row> getSerializationSchema​(java.lang.String[] fieldNames)
        Gets a serialization schema based on the given output field names.
        Parameters:
        fieldNames - the field names to emit.
      • 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