public class CombineFns extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CombineFns.CoCombineResult
A tuple of outputs produced by a composed combine functions.
|
static class |
CombineFns.ComposeCombineFnBuilder
A builder class to construct a composed
CombineFnBase.GlobalCombineFn. |
static class |
CombineFns.ComposedCombineFn<DataT>
A composed
Combine.CombineFn that applies multiple CombineFns. |
static class |
CombineFns.ComposedCombineFnWithContext<DataT>
A composed
CombineWithContext.CombineFnWithContext that applies multiple
CombineFnWithContexts. |
static class |
CombineFns.ComposedKeyedCombineFn<DataT,K>
A composed
Combine.KeyedCombineFn that applies multiple KeyedCombineFns. |
static class |
CombineFns.ComposedKeyedCombineFnWithContext<DataT,K>
A composed
CombineWithContext.KeyedCombineFnWithContext that applies multiple
KeyedCombineFnWithContexts. |
static class |
CombineFns.ComposeKeyedCombineFnBuilder
A builder class to construct a composed
CombineFnBase.PerKeyCombineFn. |
| Constructor and Description |
|---|
CombineFns() |
| Modifier and Type | Method and Description |
|---|---|
static CombineFns.ComposeCombineFnBuilder |
compose()
Returns a
CombineFns.ComposeCombineFnBuilder to construct a composed
CombineFnBase.GlobalCombineFn. |
static CombineFns.ComposeKeyedCombineFnBuilder |
composeKeyed()
Returns a
CombineFns.ComposeKeyedCombineFnBuilder to construct a composed
CombineFnBase.PerKeyCombineFn. |
public static CombineFns.ComposeKeyedCombineFnBuilder composeKeyed()
CombineFns.ComposeKeyedCombineFnBuilder to construct a composed
CombineFnBase.PerKeyCombineFn.
The same TupleTag cannot be used in a composition multiple times.
Example:
{ @code
PCollection> latencies = ...;
TupleTag maxLatencyTag = new TupleTag();
TupleTag meanLatencyTag = new TupleTag();
SimpleFunction identityFn =
new SimpleFunction() { public static CombineFns.ComposeCombineFnBuilder compose()
CombineFns.ComposeCombineFnBuilder to construct a composed
CombineFnBase.GlobalCombineFn.
The same TupleTag cannot be used in a composition multiple times.
Example:
{ @code
PCollection globalLatencies = ...;
TupleTag maxLatencyTag = new TupleTag();
TupleTag meanLatencyTag = new TupleTag();
SimpleFunction identityFn =
new SimpleFunction() {