IN
- type of records written to the file@PublicEvolving public class UpsertTestSink<IN> extends Object implements Sink<IN>
Please note that the UpsertTestSink needs to run with a parallelism of 1 to function correctly. There is currently no support for using multiple writers at once.
Sink.InitContext, Sink.InitContextWrapper
Modifier and Type | Method and Description |
---|---|
static <IN> UpsertTestSinkBuilder<IN> |
builder()
Create a
UpsertTestSinkBuilder to construct a new UpsertTestSink . |
SinkWriter<IN> |
createWriter(Sink.InitContext context)
Creates a
SinkWriter . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createWriter
public static <IN> UpsertTestSinkBuilder<IN> builder()
UpsertTestSinkBuilder
to construct a new UpsertTestSink
.IN
- type of incoming recordsUpsertTestSinkBuilder
@Internal public SinkWriter<IN> createWriter(Sink.InitContext context)
Sink
SinkWriter
.createWriter
in interface Sink<IN>
context
- the runtime context.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.