public abstract class DoFnWithContext.ProcessContext extends DoFnWithContext.Context
DoFn.processElement(org.apache.beam.sdk.transforms.DoFn<InputT, OutputT>.ProcessContext).| 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, outputWithTimestamp, sideOutput, sideOutputWithTimestamppublic abstract InputT element()
The element will not be changed -- it is safe to cache, etc. without copying.
public abstract <T> T sideInput(PCollectionView<T> view)
IllegalArgumentException - if this is not a side inputParDo.withSideInputs(org.apache.beam.sdk.values.PCollectionView<?>...)public abstract Instant timestamp()
See Window
for more information.