public class CacheGatherSink<T> extends StoreIterSink<Tuple<java.lang.Integer,T>,T>
Constructor and Description |
---|
CacheGatherSink() |
Modifier and Type | Method and Description |
---|---|
protected T |
extractValue(Tuple<java.lang.Integer,T> input)
Extracts value from an input value of the iterator
|
CollectionPartition<T> |
get()
Returns the
CollectionPartition that would accept the values. |
void |
prepare(TSetContext ctx)
Prepare the function.
|
add
getInput, getTSetContext
public void prepare(TSetContext ctx)
TFunction
prepare
in interface TFunction<java.util.Iterator<Tuple<java.lang.Integer,T>>,java.util.Iterator<Tuple<java.lang.Integer,T>>>
prepare
in class BaseTFunction<java.util.Iterator<Tuple<java.lang.Integer,T>>,java.util.Iterator<Tuple<java.lang.Integer,T>>>
ctx
- CONTEXTpublic CollectionPartition<T> get()
StoreIterSink
CollectionPartition
that would accept the values. This could be an in-mem
collection or a disk-backed collectionprotected T extractValue(Tuple<java.lang.Integer,T> input)
StoreIterSink
extractValue
in class StoreIterSink<Tuple<java.lang.Integer,T>,T>