public abstract class DoFn.ProcessContext extends DoFn.WindowedContext
DoFn.ProcessElement
method.Constructor and Description |
---|
ProcessContext() |
Modifier and Type | Method and Description |
---|---|
abstract InputT |
element()
Returns the input element to be processed.
|
abstract PaneInfo |
pane()
Returns information about the pane within this window into which the input element has been
assigned.
|
abstract <T> T |
sideInput(PCollectionView<T> view)
Returns the value of the side input.
|
abstract Instant |
timestamp()
Returns the timestamp of the input element.
|
getPipelineOptions, output, output, outputWithTimestamp, outputWithTimestamp
public abstract InputT element()
The element will not be changed -- it is safe to cache, etc. without copying.
Implementation of DoFn.ProcessElement
method should not mutate the element.
public abstract <T> T sideInput(PCollectionView<T> view)
java.lang.IllegalArgumentException
- if this is not a side inputParDo.SingleOutput.withSideInputs(org.apache.beam.sdk.values.PCollectionView<?>...)
public abstract Instant timestamp()
See Window
for more information.