@Internal public abstract static class DoFnInvoker.BaseArgumentProvider<InputT,OutputT> extends java.lang.Object implements DoFnInvoker.ArgumentProvider<InputT,OutputT>
DoFnInvoker.ArgumentProvider throws UnsupportedOperationException for all parameters.| Constructor and Description |
|---|
BaseArgumentProvider() |
| Modifier and Type | Method and Description |
|---|---|
DoFn.BundleFinalizer |
bundleFinalizer()
Provide a
DoFn.BundleFinalizer for being able to register a callback after the bundle has
been successfully persisted by the runner. |
InputT |
element(DoFn<InputT,OutputT> doFn)
Provide a reference to the input element.
|
DoFn.FinishBundleContext |
finishBundleContext(DoFn<InputT,OutputT> doFn)
Provide a
DoFn.FinishBundleContext to use with the given DoFn. |
abstract java.lang.String |
getErrorContext()
Return a human readable representation of the current call context to be used during error
reporting.
|
java.lang.Object |
key()
Provide a reference to the input element key in
KV pair. |
DoFn.OnTimerContext |
onTimerContext(DoFn<InputT,OutputT> doFn)
Provide a
DoFn.OnTimerContext to use with the given DoFn. |
DoFn.OutputReceiver<OutputT> |
outputReceiver(DoFn<InputT,OutputT> doFn)
Provide a
DoFn.OutputReceiver for outputting to the default output. |
DoFn.OutputReceiver<Row> |
outputRowReceiver(DoFn<InputT,OutputT> doFn)
Provide a
DoFn.OutputReceiver for outputting rows to the default output. |
PaneInfo |
paneInfo(DoFn<InputT,OutputT> doFn)
Provides a
PaneInfo. |
PipelineOptions |
pipelineOptions()
Provide
PipelineOptions. |
DoFn.ProcessContext |
processContext(DoFn<InputT,OutputT> doFn)
Provide a
DoFn.ProcessContext to use with the given DoFn. |
java.lang.Object |
restriction()
If this is a splittable
DoFn, returns the associated restriction with the current
call. |
RestrictionTracker<?,?> |
restrictionTracker()
If this is a splittable
DoFn, returns the associated RestrictionTracker with
the current call. |
java.lang.Object |
schemaElement(int index)
Provide a reference to the selected schema field corresponding to the input argument
specified by index.
|
java.lang.Object |
sideInput(java.lang.String tagId)
Provide a reference to the input sideInput with the specified tag.
|
DoFn.StartBundleContext |
startBundleContext(DoFn<InputT,OutputT> doFn)
Provide a
DoFn.StartBundleContext to use with the given DoFn. |
State |
state(java.lang.String stateId,
boolean alwaysFetched)
Returns the state cell for the given
DoFn.StateId. |
DoFn.MultiOutputReceiver |
taggedOutputReceiver(DoFn<InputT,OutputT> doFn)
Provide a
DoFn.MultiOutputReceiver for outputting to the default output. |
TimeDomain |
timeDomain(DoFn<InputT,OutputT> doFn)
Provide a reference to the time domain for a timer firing.
|
Timer |
timer(java.lang.String timerId)
Returns the timer for the given
DoFn.TimerId. |
TimerMap |
timerFamily(java.lang.String tagId)
Returns the timerMap for the given
DoFn.TimerFamily. |
java.lang.String |
timerId(DoFn<InputT,OutputT> doFn)
Returns the timer id for the current timer of a
DoFn.TimerFamily. |
org.joda.time.Instant |
timestamp(DoFn<InputT,OutputT> doFn)
Provide a reference to the input element timestamp.
|
WatermarkEstimator<?> |
watermarkEstimator()
If this is a splittable
DoFn, returns the associated WatermarkEstimator with
the current call. |
java.lang.Object |
watermarkEstimatorState()
If this is a splittable
DoFn, returns the associated watermark estimator state with
the current call. |
BoundedWindow |
window()
Construct the
BoundedWindow to use within a DoFn that needs it. |
public DoFn.ProcessContext processContext(DoFn<InputT,OutputT> doFn)
DoFnInvoker.ArgumentProviderDoFn.ProcessContext to use with the given DoFn.processContext in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public InputT element(DoFn<InputT,OutputT> doFn)
DoFnInvoker.ArgumentProviderelement in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public java.lang.Object key()
DoFnInvoker.ArgumentProviderKV pair.key in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public java.lang.Object sideInput(java.lang.String tagId)
DoFnInvoker.ArgumentProvidersideInput in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public TimerMap timerFamily(java.lang.String tagId)
DoFnInvoker.ArgumentProviderDoFn.TimerFamily.timerFamily in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public java.lang.Object schemaElement(int index)
DoFnInvoker.ArgumentProviderschemaElement in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public org.joda.time.Instant timestamp(DoFn<InputT,OutputT> doFn)
DoFnInvoker.ArgumentProvidertimestamp in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public java.lang.String timerId(DoFn<InputT,OutputT> doFn)
DoFnInvoker.ArgumentProviderDoFn.TimerFamily.timerId in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public TimeDomain timeDomain(DoFn<InputT,OutputT> doFn)
DoFnInvoker.ArgumentProvidertimeDomain in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public DoFn.OutputReceiver<OutputT> outputReceiver(DoFn<InputT,OutputT> doFn)
DoFnInvoker.ArgumentProviderDoFn.OutputReceiver for outputting to the default output.outputReceiver in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public DoFn.OutputReceiver<Row> outputRowReceiver(DoFn<InputT,OutputT> doFn)
DoFnInvoker.ArgumentProviderDoFn.OutputReceiver for outputting rows to the default output.outputRowReceiver in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public DoFn.MultiOutputReceiver taggedOutputReceiver(DoFn<InputT,OutputT> doFn)
DoFnInvoker.ArgumentProviderDoFn.MultiOutputReceiver for outputting to the default output.taggedOutputReceiver in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public java.lang.Object restriction()
DoFnInvoker.ArgumentProviderDoFn, returns the associated restriction with the current
call.restriction in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public BoundedWindow window()
DoFnInvoker.ArgumentProviderBoundedWindow to use within a DoFn that needs it. This is
called if the DoFn.ProcessElement method has a parameter of type BoundedWindow.window in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>BoundedWindow of the element currently being processed.public PaneInfo paneInfo(DoFn<InputT,OutputT> doFn)
DoFnInvoker.ArgumentProviderPaneInfo.paneInfo in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public PipelineOptions pipelineOptions()
DoFnInvoker.ArgumentProviderPipelineOptions.pipelineOptions in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public DoFn.StartBundleContext startBundleContext(DoFn<InputT,OutputT> doFn)
DoFnInvoker.ArgumentProviderDoFn.StartBundleContext to use with the given DoFn.startBundleContext in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public DoFn.FinishBundleContext finishBundleContext(DoFn<InputT,OutputT> doFn)
DoFnInvoker.ArgumentProviderDoFn.FinishBundleContext to use with the given DoFn.finishBundleContext in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public DoFn.OnTimerContext onTimerContext(DoFn<InputT,OutputT> doFn)
DoFnInvoker.ArgumentProviderDoFn.OnTimerContext to use with the given DoFn.onTimerContext in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public State state(java.lang.String stateId, boolean alwaysFetched)
DoFnInvoker.ArgumentProviderDoFn.StateId.state in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public Timer timer(java.lang.String timerId)
DoFnInvoker.ArgumentProviderDoFn.TimerId.timer in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public RestrictionTracker<?,?> restrictionTracker()
DoFnInvoker.ArgumentProviderDoFn, returns the associated RestrictionTracker with
the current call.restrictionTracker in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public java.lang.Object watermarkEstimatorState()
DoFnInvoker.ArgumentProviderDoFn, returns the associated watermark estimator state with
the current call.watermarkEstimatorState in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public WatermarkEstimator<?> watermarkEstimator()
DoFnInvoker.ArgumentProviderDoFn, returns the associated WatermarkEstimator with
the current call.watermarkEstimator in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public DoFn.BundleFinalizer bundleFinalizer()
DoFnInvoker.ArgumentProviderDoFn.BundleFinalizer for being able to register a callback after the bundle has
been successfully persisted by the runner.bundleFinalizer in interface DoFnInvoker.ArgumentProvider<InputT,OutputT>public abstract java.lang.String getErrorContext()