T - the type of the elements written to the sinkpublic class ShuffleSink<T> extends Sink<WindowedValue<T>>
Sink.SinkWriter<ElemT>| Constructor and Description |
|---|
ShuffleSink(PipelineOptions options,
byte[] shuffleWriterConfig,
com.google.cloud.dataflow.sdk.runners.worker.ShuffleSink.ShuffleKind shuffleKind,
Coder<WindowedValue<T>> coder,
CounterSet.AddCounterMutator addCounterMutator) |
| Modifier and Type | Method and Description |
|---|---|
static com.google.cloud.dataflow.sdk.runners.worker.ShuffleSink.ShuffleKind |
parseShuffleKind(String shuffleKind) |
Sink.SinkWriter<WindowedValue<T>> |
writer()
Returns a Writer that allows writing to this Sink.
|
Sink.SinkWriter<WindowedValue<T>> |
writer(com.google.cloud.dataflow.sdk.runners.worker.ShuffleEntryWriter writer,
String datasetId)
Returns a SinkWriter that allows writing to this ShuffleSink,
using the given ShuffleEntryWriter.
|
supportsRestartpublic ShuffleSink(PipelineOptions options, byte[] shuffleWriterConfig, com.google.cloud.dataflow.sdk.runners.worker.ShuffleSink.ShuffleKind shuffleKind, Coder<WindowedValue<T>> coder, CounterSet.AddCounterMutator addCounterMutator) throws Exception
Exceptionpublic static com.google.cloud.dataflow.sdk.runners.worker.ShuffleSink.ShuffleKind parseShuffleKind(String shuffleKind) throws Exception
Exceptionpublic Sink.SinkWriter<WindowedValue<T>> writer(com.google.cloud.dataflow.sdk.runners.worker.ShuffleEntryWriter writer, String datasetId)
public Sink.SinkWriter<WindowedValue<T>> writer() throws IOException
Sinkwriter in class Sink<WindowedValue<T>>IOException