public static class Sum.SumIntegerFn extends java.lang.Object implements SerializableFunction<java.lang.Iterable<java.lang.Integer>,java.lang.Integer>
SerializableFunction that computes the sum of an
Iterable of Integers, useful as an argument to
Combine.globally(com.google.cloud.dataflow.sdk.transforms.SerializableFunction<java.lang.Iterable<V>, V>) or Combine.perKey(com.google.cloud.dataflow.sdk.transforms.SerializableFunction<java.lang.Iterable<V>, V>).| Constructor and Description |
|---|
Sum.SumIntegerFn() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
apply(java.lang.Iterable<java.lang.Integer> input)
Returns the result of invoking this function on the given input.
|
public java.lang.Integer apply(java.lang.Iterable<java.lang.Integer> input)
SerializableFunctionapply in interface SerializableFunction<java.lang.Iterable<java.lang.Integer>,java.lang.Integer>