Class Pravega.TableSinkWriterBuilder<T extends AbstractStreamingWriterBuilder>

    • Constructor Detail

      • TableSinkWriterBuilder

        public TableSinkWriterBuilder()
    • 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.
        Returns:
        A builder to configure and create a writer.
      • 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.
        Returns:
        A builder to configure and create a writer.
      • createSinkFunction

        public FlinkPravegaWriter<org.apache.flink.types.Row> createSinkFunction​(org.apache.flink.table.api.TableSchema tableSchema)
        Creates the sink function based on the given table schema and current builder state.
        Parameters:
        tableSchema - the schema of the sink table
        Returns:
        An instance of FlinkPravegaWriter.
      • createOutputFormat

        public FlinkPravegaOutputFormat<org.apache.flink.types.Row> createOutputFormat​(org.apache.flink.table.api.TableSchema tableSchema)
        Creates FlinkPravegaOutputFormat based on the given table schema and current builder state.
        Parameters:
        tableSchema - the schema of the sink table
        Returns:
        An instance of FlinkPravegaOutputFormat.