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.
|
addgetInput, getTSetContextpublic void prepare(TSetContext ctx)
TFunctionprepare 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()
StoreIterSinkCollectionPartition 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)
StoreIterSinkextractValue in class StoreIterSink<Tuple<java.lang.Integer,T>,T>