Package org.apache.beam.sdk.transforms
Class Contextful.Fn.Context
java.lang.Object
org.apache.beam.sdk.transforms.Contextful.Fn.Context
- Enclosing interface:
Contextful.Fn<InputT,
OutputT>
An accessor for additional capabilities available in
Contextful.Fn.apply(InputT, org.apache.beam.sdk.transforms.Contextful.Fn.Context)
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
sideInput
(PCollectionView<T> view) Accesses the given side input.static <InputT> Contextful.Fn.Context
wrapProcessContext
(DoFn<InputT, ?>.ProcessContext c) Convenience wrapper for creating aContextful.Fn.Context
from aDoFn.ProcessContext
, to support the common case when aPTransform
is invoking theclosure
from inside aDoFn
.
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
sideInput
Accesses the given side input. The window in which it is accessed is unspecified, depends on usage by the enclosingPTransform
, and must be documented by that transform. -
wrapProcessContext
Convenience wrapper for creating aContextful.Fn.Context
from aDoFn.ProcessContext
, to support the common case when aPTransform
is invoking theclosure
from inside aDoFn
.
-