@Internal public class DoFnOutputReceivers extends java.lang.Object
DoFn.OutputReceiver
and DoFn.MultiOutputReceiver
classes.Constructor and Description |
---|
DoFnOutputReceivers() |
Modifier and Type | Method and Description |
---|---|
static <T> DoFn.OutputReceiver<Row> |
rowReceiver(DoFn.WindowedContext context,
@Nullable TupleTag<T> outputTag,
SchemaCoder<T> schemaCoder)
Returns a
DoFn.OutputReceiver that automatically converts a Row to the user's output
type and delegates to WindowedContextOutputReceiver . |
static <T> DoFn.MultiOutputReceiver |
windowedMultiReceiver(DoFn.WindowedContext context)
Returns a
DoFn.MultiOutputReceiver that delegates to a DoFn.WindowedContext . |
static <T> DoFn.MultiOutputReceiver |
windowedMultiReceiver(DoFn.WindowedContext context,
@Nullable java.util.Map<TupleTag<?>,Coder<?>> outputCoders)
Returns a
DoFn.MultiOutputReceiver that delegates to a DoFn.WindowedContext . |
static <T> DoFn.OutputReceiver<T> |
windowedReceiver(DoFn.WindowedContext context,
@Nullable TupleTag<T> outputTag)
Returns a
DoFn.OutputReceiver that delegates to a DoFn.WindowedContext . |
public static <T> DoFn.OutputReceiver<T> windowedReceiver(DoFn.WindowedContext context, @Nullable TupleTag<T> outputTag)
DoFn.OutputReceiver
that delegates to a DoFn.WindowedContext
.public static <T> DoFn.MultiOutputReceiver windowedMultiReceiver(DoFn.WindowedContext context, @Nullable java.util.Map<TupleTag<?>,Coder<?>> outputCoders)
DoFn.MultiOutputReceiver
that delegates to a DoFn.WindowedContext
.public static <T> DoFn.MultiOutputReceiver windowedMultiReceiver(DoFn.WindowedContext context)
DoFn.MultiOutputReceiver
that delegates to a DoFn.WindowedContext
.
This exists for backwards-compatibility with the Dataflow runner, and will be removed.
public static <T> DoFn.OutputReceiver<Row> rowReceiver(DoFn.WindowedContext context, @Nullable TupleTag<T> outputTag, SchemaCoder<T> schemaCoder)
DoFn.OutputReceiver
that automatically converts a Row
to the user's output
type and delegates to WindowedContextOutputReceiver
.