T - The type of elements this Window is applied topublic static class Window.Bound<T> extends PTransform<PCollection<T>,PCollection<T>>
PTransform that windows the elements of a PCollection<T>,
into finite windows according to a user-specified WindowFn<T, B>.name| Modifier and Type | Method and Description |
|---|---|
PCollection<T> |
apply(PCollection<T> input)
Applies this
PTransform on the given Input, and returns its
Output. |
protected Coder<?> |
getDefaultOutputCoder()
Returns the default
Coder to use for the output of this
single-output PTransform, or null if
none can be inferred. |
protected java.lang.String |
getKindString()
Returns a string describing what kind of
PTransform this is. |
WindowFn<? super T,?> |
getWindowFn()
Returns the user-specified
WindowFn. |
Window.Bound<T> |
named(java.lang.String name)
Returns a new
Window PTransform that's like this
PTransform but with the specified name. |
finishSpecifying, getCoderRegistry, getDefaultName, getDefaultOutputCoder, getInput, getName, getOutput, getPipeline, setName, setPipeline, toString, withNamepublic Window.Bound<T> named(java.lang.String name)
Window PTransform that's like this
PTransform but with the specified name. Does not
modify this PTransform.
See the discussion of Naming in
ParDo for more
explanation.
public PCollection<T> apply(PCollection<T> input)
PTransformPTransform on the given Input, and returns its
Output.
Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
The default implementation throws an exception. A derived class must
either implement apply, or else each runner must supply a custom
implementation via
PipelineRunner.apply(com.google.cloud.dataflow.sdk.transforms.PTransform<Input, Output>, Input).
apply in class PTransform<PCollection<T>,PCollection<T>>protected Coder<?> getDefaultOutputCoder()
PTransformCoder to use for the output of this
single-output PTransform, or null if
none can be inferred.
By default, returns null.
getDefaultOutputCoder in class PTransform<PCollection<T>,PCollection<T>>protected java.lang.String getKindString()
PTransformPTransform this is.
By default, returns the base name of this
PTransform's class.
getKindString in class PTransform<PCollection<T>,PCollection<T>>