public static class Sum.SumDoubleFn extends java.lang.Object implements SerializableFunction<java.lang.Iterable<java.lang.Double>,java.lang.Double>
SerializableFunction that computes the sum of an
Iterable of Doubles, 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.SumDoubleFn() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
apply(java.lang.Iterable<java.lang.Double> input)
Returns the result of invoking this function on the given input.
|
public java.lang.Double apply(java.lang.Iterable<java.lang.Double> input)
SerializableFunctionapply in interface SerializableFunction<java.lang.Iterable<java.lang.Double>,java.lang.Double>