public class DoFns extends Object
| Constructor and Description |
|---|
DoFns() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V,T> DoFn<Pair<K,Iterable<V>>,T> |
detach(DoFn<Pair<K,Iterable<V>>,T> reduceFn,
PType<V> valueType)
"Reduce" DoFn wrapper which detaches the values in the iterable, preventing the unexpected behaviour related to
object reuse often observed when using Avro.
|
public static <K,V,T> DoFn<Pair<K,Iterable<V>>,T> detach(DoFn<Pair<K,Iterable<V>>,T> reduceFn, PType<V> valueType)
K - Reduce keyV - Iterable valueT - Output type of DoFnreduceFn - Underlying DoFn to wrapvalueType - PType of the object contained within the IterableCopyright © 2015 The Apache Software Foundation. All Rights Reserved.