public abstract static class Contextful.Fn.Context
extends java.lang.Object
Contextful.Fn.apply(InputT, org.apache.beam.sdk.transforms.Contextful.Fn.Context)
.Constructor and Description |
---|
Context() |
Modifier and Type | Method and Description |
---|---|
<T> T |
sideInput(PCollectionView<T> view)
Accesses the given side input.
|
static <InputT> Contextful.Fn.Context |
wrapProcessContext(DoFn.ProcessContext c)
Convenience wrapper for creating a
Contextful.Fn.Context from a DoFn.ProcessContext , to
support the common case when a PTransform is invoking the closure from inside a DoFn . |
public <T> T sideInput(PCollectionView<T> view)
PTransform
, and must be documented by that transform.public static <InputT> Contextful.Fn.Context wrapProcessContext(DoFn.ProcessContext c)
Contextful.Fn.Context
from a DoFn.ProcessContext
, to
support the common case when a PTransform
is invoking the closure
from inside a DoFn
.