public final class SinkFactory extends Object
A SinkFactory concrete "subclass" should define a method with the following signature:
static SomeSinkSubclass<T> create(PipelineOptions, CloudObject,
Coder<T>, ExecutionContext,
CounterSet.AddCounterMutator);
| Modifier and Type | Method and Description |
|---|---|
static <T> Sink<T> |
create(PipelineOptions options,
com.google.api.services.dataflow.model.Sink cloudSink,
ExecutionContext executionContext,
CounterSet.AddCounterMutator addCounterMutator)
Creates a
Sink from a Dataflow API Sink definition. |
public static <T> Sink<T> create(PipelineOptions options, com.google.api.services.dataflow.model.Sink cloudSink, ExecutionContext executionContext, CounterSet.AddCounterMutator addCounterMutator) throws Exception
Sink from a Dataflow API Sink definition.Exception - if the sink could not be decoded and
constructed