Class UpsertTestSinkBuilder<IN>

  • Type Parameters:
    IN - type of the records written to the file

    @PublicEvolving
    public class UpsertTestSinkBuilder<IN>
    extends Object
    Builder to construct UpsertTestSink.

    The following example shows the minimum setup to create a UpsertTestSink that writes Tuple2<String, String> values to a file.

    
     UpsertTestSink<Tuple2<String, String>> sink = UpsertTestSink
         .<Tuple2<String, String>>builder
         .setOutputFile(MY_OUTPUT_FILE)
         .setKeySerializationSchema(MY_KEY_SERIALIZER)
         .setValueSerializationSchema(MY_VALUE_SERIALIZER)
         .build();