IN
- type of the records written to the file@PublicEvolving public class UpsertTestSinkBuilder<IN> extends Object
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();
Constructor and Description |
---|
UpsertTestSinkBuilder() |
Modifier and Type | Method and Description |
---|---|
UpsertTestSink<IN> |
build()
Constructs the
UpsertTestSink with the configured properties. |
UpsertTestSinkBuilder<IN> |
setKeySerializationSchema(SerializationSchema<IN> keySerializationSchema)
Sets the key
SerializationSchema that transforms incoming records to byte[]. |
UpsertTestSinkBuilder<IN> |
setOutputFile(File outputFile)
Sets the output
File to write to. |
UpsertTestSinkBuilder<IN> |
setValueSerializationSchema(SerializationSchema<IN> valueSerializationSchema)
Sets the value
SerializationSchema that transforms incoming records to byte[]. |
public UpsertTestSinkBuilder<IN> setOutputFile(File outputFile)
File
to write to.outputFile
- UpsertTestSinkBuilder
public UpsertTestSinkBuilder<IN> setKeySerializationSchema(SerializationSchema<IN> keySerializationSchema)
SerializationSchema
that transforms incoming records to byte[].keySerializationSchema
- UpsertTestSinkBuilder
public UpsertTestSinkBuilder<IN> setValueSerializationSchema(SerializationSchema<IN> valueSerializationSchema)
SerializationSchema
that transforms incoming records to byte[].valueSerializationSchema
- UpsertTestSinkBuilder
public UpsertTestSink<IN> build()
UpsertTestSink
with the configured properties.UpsertTestSink
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.