K - V - public interface BatchTupleTSet<K,V> extends TupleTSet<K,V>, AcceptingData<Tuple<K,V>>, StoringData<Tuple<K,V>>
| Modifier and Type | Method and Description |
|---|---|
BatchTupleTSet<K,V> |
addInput(java.lang.String key,
StorableTBase<?> input)
Adds inputs to
BatchTupleTSets |
<VR> BatchTLink<java.util.Iterator<JoinedTuple<K,V,VR>>,JoinedTuple<K,V,VR>> |
join(BatchTupleTSet<K,VR> rightTSet,
CommunicationContext.JoinType type,
java.util.Comparator<K> keyComparator)
Joins with another
BatchTupleTSet. |
<VR> BatchTLink<java.util.Iterator<JoinedTuple<K,V,VR>>,JoinedTuple<K,V,VR>> |
join(BatchTupleTSet<K,VR> rightTSet,
CommunicationContext.JoinType type,
java.util.Comparator<K> keyComparator,
TaskPartitioner<K> partitioner)
Joins with another
BatchTupleTSet. |
BatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> |
keyedDirect()
Direct/pipe communication
|
BatchTLink<java.util.Iterator<Tuple<K,java.util.Iterator<V>>>,Tuple<K,java.util.Iterator<V>>> |
keyedGather()
Gathers data by key for
BatchTupleTSets |
BatchTLink<java.util.Iterator<Tuple<K,java.util.Iterator<V>>>,Tuple<K,java.util.Iterator<V>>> |
keyedGather(PartitionFunc<K> partitionFn)
Gathers data by key for
BatchTupleTSets |
BatchTLink<java.util.Iterator<Tuple<K,java.util.Iterator<V>>>,Tuple<K,java.util.Iterator<V>>> |
keyedGather(PartitionFunc<K> partitionFn,
java.util.Comparator<K> comparator)
Gathers data by key for
BatchTupleTSets |
BatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> |
keyedGatherUngrouped()
Gathers data by key for
BatchTupleTSets without grouping data by keys |
BatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> |
keyedGatherUngrouped(PartitionFunc<K> partitionFn)
Gathers data by key for
BatchTupleTSets without grouping data by keys |
BatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> |
keyedGatherUngrouped(PartitionFunc<K> partitionFn,
java.util.Comparator<K> comparator)
Gathers data by key for
BatchTupleTSets without grouping data by keys |
BatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> |
keyedPartition(PartitionFunc<K> partitionFn)
Partitions data using a
PartitionFunc based on keys |
BatchTLink<Tuple<K,V>,Tuple<K,V>> |
keyedPipe()
Pipe implementation
|
BatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> |
keyedReduce(ReduceFunc<V> reduceFn)
Reduces data by key for
BatchTupleTSets |
BatchTupleTSet<K,V> |
setName(java.lang.String name)
Name of the tset
|
withSchemacache, lazyCache, lazyPersist, persistBatchTupleTSet<K,V> setName(java.lang.String name)
BatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> keyedPartition(PartitionFunc<K> partitionFn)
PartitionFunc based on keyskeyedPartition in interface TupleTSet<K,V>partitionFn - partition functionBatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> keyedDirect()
keyedDirect in interface TupleTSet<K,V>BatchTLink<Tuple<K,V>,Tuple<K,V>> keyedPipe()
BatchTLink<java.util.Iterator<Tuple<K,java.util.Iterator<V>>>,Tuple<K,java.util.Iterator<V>>> keyedGather()
BatchTupleTSetsBatchTLink<java.util.Iterator<Tuple<K,java.util.Iterator<V>>>,Tuple<K,java.util.Iterator<V>>> keyedGather(PartitionFunc<K> partitionFn)
BatchTupleTSetspartitionFn - partition function to partition data based on keyBatchTLink<java.util.Iterator<Tuple<K,java.util.Iterator<V>>>,Tuple<K,java.util.Iterator<V>>> keyedGather(PartitionFunc<K> partitionFn, java.util.Comparator<K> comparator)
BatchTupleTSetspartitionFn - partition function to partition data based on keycomparator - custom key comparatorBatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> keyedGatherUngrouped()
BatchTupleTSets without grouping data by keysBatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> keyedGatherUngrouped(PartitionFunc<K> partitionFn)
BatchTupleTSets without grouping data by keyspartitionFn - partition function to partition data based on keyBatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> keyedGatherUngrouped(PartitionFunc<K> partitionFn, java.util.Comparator<K> comparator)
BatchTupleTSets without grouping data by keyspartitionFn - partition function to partition data based on keycomparator - custom key comparatorBatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> keyedReduce(ReduceFunc<V> reduceFn)
BatchTupleTSetsreduceFn - the reduce function<VR> BatchTLink<java.util.Iterator<JoinedTuple<K,V,VR>>,JoinedTuple<K,V,VR>> join(BatchTupleTSet<K,VR> rightTSet, CommunicationContext.JoinType type, java.util.Comparator<K> keyComparator)
BatchTupleTSet. Note that this TSet will be considered the left
TSetVR - value type of the right tsetrightTSet - right tsettype - CommunicationContext.JoinTypekeyComparator - key comparator<VR> BatchTLink<java.util.Iterator<JoinedTuple<K,V,VR>>,JoinedTuple<K,V,VR>> join(BatchTupleTSet<K,VR> rightTSet, CommunicationContext.JoinType type, java.util.Comparator<K> keyComparator, TaskPartitioner<K> partitioner)
BatchTupleTSet. Note that this TSet will be considered the left
TSetVR - value type of the right tsetrightTSet - right tsettype - CommunicationContext.JoinTypekeyComparator - key comparatorpartitioner - partitioner for keysBatchTupleTSet<K,V> addInput(java.lang.String key, StorableTBase<?> input)
BatchTupleTSetsaddInput in interface AcceptingData<Tuple<K,V>>key - identifier for the inputinput - input tset