Package org.apache.beam.sdk.transforms
Class DoFnOutputReceivers
java.lang.Object
org.apache.beam.sdk.transforms.DoFnOutputReceivers
Common
DoFn.OutputReceiver and DoFn.MultiOutputReceiver classes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> DoFn.OutputReceiver<Row> rowReceiver(DoFn<?, ?>.WindowedContext context, org.apache.beam.sdk.util.OutputBuilderSupplier builderSupplier, @Nullable TupleTag<T> outputTag, SchemaCoder<T> schemaCoder) Returns aDoFn.OutputReceiverthat automatically converts aRowto the user's output type and delegates toDoFnOutputReceivers.WindowedContextOutputReceiver.static DoFn.MultiOutputReceiverwindowedMultiReceiver(DoFn<?, ?>.WindowedContext context, org.apache.beam.sdk.util.OutputBuilderSupplier builderSupplier) Returns aDoFn.MultiOutputReceiverthat delegates to aDoFn.WindowedContext.static DoFn.MultiOutputReceiverwindowedMultiReceiver(DoFn<?, ?>.WindowedContext context, org.apache.beam.sdk.util.OutputBuilderSupplier builderSupplier, @Nullable Map<TupleTag<?>, Coder<?>> outputCoders) Returns aDoFn.MultiOutputReceiverthat delegates to aDoFn.WindowedContext.static <T> DoFn.OutputReceiver<T> windowedReceiver(DoFn<?, ?>.WindowedContext context, org.apache.beam.sdk.util.OutputBuilderSupplier builderSupplier, @Nullable TupleTag<T> outputTag) Returns aDoFn.OutputReceiverthat delegates to aDoFn.WindowedContext.
-
Constructor Details
-
DoFnOutputReceivers
public DoFnOutputReceivers()
-
-
Method Details
-
windowedReceiver
public static <T> DoFn.OutputReceiver<T> windowedReceiver(DoFn<?, ?>.WindowedContext context, org.apache.beam.sdk.util.OutputBuilderSupplier builderSupplier, @Nullable TupleTag<T> outputTag) Returns aDoFn.OutputReceiverthat delegates to aDoFn.WindowedContext. -
windowedMultiReceiver
public static DoFn.MultiOutputReceiver windowedMultiReceiver(DoFn<?, ?>.WindowedContext context, org.apache.beam.sdk.util.OutputBuilderSupplier builderSupplier, @Nullable Map<TupleTag<?>, Coder<?>> outputCoders) Returns aDoFn.MultiOutputReceiverthat delegates to aDoFn.WindowedContext. -
windowedMultiReceiver
public static DoFn.MultiOutputReceiver windowedMultiReceiver(DoFn<?, ?>.WindowedContext context, org.apache.beam.sdk.util.OutputBuilderSupplier builderSupplier) Returns aDoFn.MultiOutputReceiverthat delegates to aDoFn.WindowedContext.This exists for backwards-compatibility with the Dataflow runner, and will be removed.
-
rowReceiver
public static <T> DoFn.OutputReceiver<Row> rowReceiver(DoFn<?, ?>.WindowedContext context, org.apache.beam.sdk.util.OutputBuilderSupplier builderSupplier, @Nullable TupleTag<T> outputTag, SchemaCoder<T> schemaCoder) Returns aDoFn.OutputReceiverthat automatically converts aRowto the user's output type and delegates toDoFnOutputReceivers.WindowedContextOutputReceiver.
-