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
@Pure 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.
@Pure 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<?>...)
@Pure public abstract Instant timestamp()
See Window
for more information.
@Pure public abstract PaneInfo pane()
Generally all data is in a single, uninteresting pane unless custom triggering and/or late
data has been explicitly requested. See Window
for more information.