@Internal public class TupleWrappingCollector<IN,K> extends Object implements Collector<IN>, Serializable
Tuple2<key, value>
pairs for combine method of group reduce with key selector function.Constructor and Description |
---|
TupleWrappingCollector(TupleUnwrappingIterator<IN,K> tui) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the collector.
|
void |
collect(IN record)
Emits a record.
|
void |
set(Collector<Tuple2<K,IN>> wrappedCollector) |
public TupleWrappingCollector(TupleUnwrappingIterator<IN,K> tui)
public void close()
Collector
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.