TestPipeline with the DirectRunner.@Deprecated
public class DoFnTester<InputT,OutputT>
extends java.lang.Object
implements java.lang.AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
DoFnTester.CloningBehavior
Deprecated.
Use
TestPipeline with the DirectRunner. |
| Modifier and Type | Method and Description |
|---|---|
void |
clearOutputElements()
Deprecated.
Use
TestPipeline with the DirectRunner. |
<T> void |
clearOutputElements(TupleTag<T> tag)
Deprecated.
Use
TestPipeline with the DirectRunner. |
void |
close()
Deprecated.
Use
TestPipeline with the DirectRunner. |
DoFn.ProcessContext |
createProcessContext(ValueInSingleWindow<InputT> element)
Deprecated.
Use
TestPipeline with the DirectRunner. |
void |
finishBundle()
Deprecated.
Use
TestPipeline with the DirectRunner. |
DoFnTester.CloningBehavior |
getCloningBehavior()
Deprecated.
Use
TestPipeline with the DirectRunner. |
TupleTag<OutputT> |
getMainOutputTag()
Deprecated.
Use
TestPipeline with the DirectRunner. |
<T> java.util.List<ValueInSingleWindow<T>> |
getMutableOutput(TupleTag<T> tag)
Deprecated.
Use
TestPipeline with the DirectRunner. |
PipelineOptions |
getPipelineOptions()
Deprecated.
Use
TestPipeline with the DirectRunner. |
static <InputT,OutputT> |
of(DoFn<InputT,OutputT> fn)
Deprecated.
Use
TestPipeline with the DirectRunner. |
java.util.List<OutputT> |
peekOutputElements()
Deprecated.
Use
TestPipeline with the DirectRunner. |
<T> java.util.List<T> |
peekOutputElements(TupleTag<T> tag)
Deprecated.
Use
TestPipeline with the DirectRunner. |
java.util.List<TimestampedValue<OutputT>> |
peekOutputElementsInWindow(BoundedWindow window)
Deprecated.
Use
TestPipeline with the DirectRunner. |
java.util.List<TimestampedValue<OutputT>> |
peekOutputElementsInWindow(TupleTag<OutputT> tag,
BoundedWindow window)
Deprecated.
Use
TestPipeline with the DirectRunner. |
java.util.List<TimestampedValue<OutputT>> |
peekOutputElementsWithTimestamp()
Deprecated.
Use
TestPipeline with the DirectRunner. |
java.util.List<OutputT> |
processBundle(InputT... inputElements)
Deprecated.
Use
TestPipeline with the DirectRunner. |
java.util.List<OutputT> |
processBundle(java.lang.Iterable<? extends InputT> inputElements)
Deprecated.
Use
TestPipeline with the DirectRunner. |
void |
processElement(InputT element)
Deprecated.
Use
TestPipeline with the DirectRunner. |
void |
processTimestampedElement(TimestampedValue<InputT> element)
Deprecated.
Use
TestPipeline with the DirectRunner. |
void |
processWindowedElement(InputT element,
Instant timestamp,
BoundedWindow window)
Deprecated.
Use
TestPipeline with the DirectRunner. |
void |
setCloningBehavior(DoFnTester.CloningBehavior newValue)
Deprecated.
Use
TestPipeline with the DirectRunner. |
<T> void |
setSideInput(PCollectionView<T> sideInput,
BoundedWindow window,
T value)
Deprecated.
Use
TestPipeline with the DirectRunner. |
void |
setSideInputs(java.util.Map<PCollectionView<?>,java.util.Map<BoundedWindow,?>> sideInputs)
Deprecated.
Use
TestPipeline with the DirectRunner. |
void |
startBundle()
Deprecated.
Use
TestPipeline with the DirectRunner. |
java.util.List<OutputT> |
takeOutputElements()
Deprecated.
Use
TestPipeline with the DirectRunner. |
<T> java.util.List<T> |
takeOutputElements(TupleTag<T> tag)
Deprecated.
Use
TestPipeline with the DirectRunner. |
java.util.List<TimestampedValue<OutputT>> |
takeOutputElementsWithTimestamp()
Deprecated.
Use
TestPipeline with the DirectRunner. |
@Deprecated public static <InputT,OutputT> DoFnTester<InputT,OutputT> of(DoFn<InputT,OutputT> fn)
TestPipeline with the DirectRunner.@Deprecated public void setSideInputs(java.util.Map<PCollectionView<?>,java.util.Map<BoundedWindow,?>> sideInputs)
TestPipeline with the DirectRunner.@Deprecated public <T> void setSideInput(PCollectionView<T> sideInput, BoundedWindow window, T value)
TestPipeline with the DirectRunner.@Deprecated public PipelineOptions getPipelineOptions()
TestPipeline with the DirectRunner.@Deprecated public void setCloningBehavior(DoFnTester.CloningBehavior newValue)
TestPipeline with the DirectRunner.@Deprecated public DoFnTester.CloningBehavior getCloningBehavior()
TestPipeline with the DirectRunner.@Deprecated public java.util.List<OutputT> processBundle(java.lang.Iterable<? extends InputT> inputElements) throws java.lang.Exception
TestPipeline with the DirectRunner.java.lang.Exception@Deprecated @SafeVarargs public final java.util.List<OutputT> processBundle(InputT... inputElements) throws java.lang.Exception
TestPipeline with the DirectRunner.java.lang.Exception@Deprecated
public void startBundle()
throws java.lang.Exception
TestPipeline with the DirectRunner.java.lang.Exception@Deprecated public void processElement(InputT element) throws java.lang.Exception
TestPipeline with the DirectRunner.java.lang.Exception@Deprecated public void processTimestampedElement(TimestampedValue<InputT> element) throws java.lang.Exception
TestPipeline with the DirectRunner.java.lang.Exception@Deprecated public void processWindowedElement(InputT element, Instant timestamp, BoundedWindow window) throws java.lang.Exception
TestPipeline with the DirectRunner.java.lang.Exception@Deprecated
public void finishBundle()
throws java.lang.Exception
TestPipeline with the DirectRunner.java.lang.Exception@Deprecated public java.util.List<OutputT> peekOutputElements()
TestPipeline with the DirectRunner.@Deprecated public java.util.List<TimestampedValue<OutputT>> peekOutputElementsWithTimestamp()
TestPipeline with the DirectRunner.@Deprecated public java.util.List<TimestampedValue<OutputT>> peekOutputElementsInWindow(BoundedWindow window)
TestPipeline with the DirectRunner.@Deprecated public java.util.List<TimestampedValue<OutputT>> peekOutputElementsInWindow(TupleTag<OutputT> tag, BoundedWindow window)
TestPipeline with the DirectRunner.@Deprecated public void clearOutputElements()
TestPipeline with the DirectRunner.@Deprecated public java.util.List<OutputT> takeOutputElements()
TestPipeline with the DirectRunner.@Deprecated public java.util.List<TimestampedValue<OutputT>> takeOutputElementsWithTimestamp()
TestPipeline with the DirectRunner.@Deprecated public <T> java.util.List<T> peekOutputElements(TupleTag<T> tag)
TestPipeline with the DirectRunner.@Deprecated public <T> void clearOutputElements(TupleTag<T> tag)
TestPipeline with the DirectRunner.@Deprecated public <T> java.util.List<T> takeOutputElements(TupleTag<T> tag)
TestPipeline with the DirectRunner.@Deprecated public <T> java.util.List<ValueInSingleWindow<T>> getMutableOutput(TupleTag<T> tag)
TestPipeline with the DirectRunner.@Deprecated public TupleTag<OutputT> getMainOutputTag()
TestPipeline with the DirectRunner.@Deprecated public DoFn.ProcessContext createProcessContext(ValueInSingleWindow<InputT> element)
TestPipeline with the DirectRunner.@Deprecated
public void close()
throws java.lang.Exception
TestPipeline with the DirectRunner.close in interface java.lang.AutoCloseablejava.lang.Exception