@SystemDoFnInternal public class GroupAlsoByWindowViaWindowSetDoFn<K,InputT,OutputT,W extends BoundedWindow,RinT extends org.apache.beam.sdk.util.KeyedWorkItem<K,InputT>> extends DoFn<RinT,KV<K,OutputT>> implements org.apache.beam.sdk.util.DoFnRunner.ReduceFnExecutor<K,InputT,OutputT,W>
GroupAlsoByWindowsDoFn. This delegates all of the logic to the
ReduceFnRunner.DoFn.Context, DoFn.ProcessContext, DoFn.RequiresWindowAccess| Modifier and Type | Field and Description |
|---|---|
protected Aggregator<Long,Long> |
droppedDueToClosedWindow |
protected Aggregator<Long,Long> |
droppedDueToLateness |
| Modifier and Type | Method and Description |
|---|---|
DoFn<org.apache.beam.sdk.util.KeyedWorkItem<K,InputT>,KV<K,OutputT>> |
asDoFn()
Gets this object as a
DoFn. |
static <K,InputT,OutputT,W extends BoundedWindow> |
create(org.apache.beam.sdk.util.WindowingStrategy<?,W> strategy,
org.apache.beam.sdk.util.state.StateInternalsFactory<K> stateInternalsFactory,
org.apache.beam.sdk.util.SystemReduceFn<K,InputT,?,OutputT,W> reduceFn) |
Aggregator<Long,Long> |
getDroppedDueToLatenessAggregator()
Returns an aggregator that tracks elements that are dropped due to being late.
|
void |
processElement(DoFn.ProcessContext c) |
createAggregator, createAggregator, finishBundle, getAllowedTimestampSkew, getInputTypeDescriptor, getOutputTypeDescriptor, populateDisplayData, startBundleprotected final Aggregator<Long,Long> droppedDueToClosedWindow
protected final Aggregator<Long,Long> droppedDueToLateness
public static <K,InputT,OutputT,W extends BoundedWindow> DoFn<org.apache.beam.sdk.util.KeyedWorkItem<K,InputT>,KV<K,OutputT>> create(org.apache.beam.sdk.util.WindowingStrategy<?,W> strategy, org.apache.beam.sdk.util.state.StateInternalsFactory<K> stateInternalsFactory, org.apache.beam.sdk.util.SystemReduceFn<K,InputT,?,OutputT,W> reduceFn)
public void processElement(DoFn.ProcessContext c) throws Exception
processElement in class DoFn<RinT extends org.apache.beam.sdk.util.KeyedWorkItem<K,InputT>,KV<K,OutputT>>Exceptionpublic DoFn<org.apache.beam.sdk.util.KeyedWorkItem<K,InputT>,KV<K,OutputT>> asDoFn()
org.apache.beam.sdk.util.DoFnRunner.ReduceFnExecutorDoFn.
Most implementors of this interface are expected to be DoFn instances, and will
return themselves.asDoFn in interface org.apache.beam.sdk.util.DoFnRunner.ReduceFnExecutor<K,InputT,OutputT,W extends BoundedWindow>public Aggregator<Long,Long> getDroppedDueToLatenessAggregator()
org.apache.beam.sdk.util.DoFnRunner.ReduceFnExecutorgetDroppedDueToLatenessAggregator in interface org.apache.beam.sdk.util.DoFnRunner.ReduceFnExecutor<K,InputT,OutputT,W extends BoundedWindow>