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
BatchTupleTSet s |
<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
BatchTupleTSet s |
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
BatchTupleTSet s |
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
BatchTupleTSet s |
BatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> |
keyedGatherUngrouped()
Gathers data by key for
BatchTupleTSet s without grouping data by keys |
BatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> |
keyedGatherUngrouped(PartitionFunc<K> partitionFn)
Gathers data by key for
BatchTupleTSet s 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
BatchTupleTSet s 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
BatchTupleTSet s |
BatchTupleTSet<K,V> |
setName(java.lang.String name)
Name of the tset
|
withSchema
cache, lazyCache, lazyPersist, persist
BatchTupleTSet<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()
BatchTupleTSet
sBatchTLink<java.util.Iterator<Tuple<K,java.util.Iterator<V>>>,Tuple<K,java.util.Iterator<V>>> keyedGather(PartitionFunc<K> partitionFn)
BatchTupleTSet
spartitionFn
- 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)
BatchTupleTSet
spartitionFn
- partition function to partition data based on keycomparator
- custom key comparatorBatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> keyedGatherUngrouped()
BatchTupleTSet
s without grouping data by keysBatchTLink<java.util.Iterator<Tuple<K,V>>,Tuple<K,V>> keyedGatherUngrouped(PartitionFunc<K> partitionFn)
BatchTupleTSet
s 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)
BatchTupleTSet
s 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)
BatchTupleTSet
sreduceFn
- 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.JoinType
keyComparator
- 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.JoinType
keyComparator
- key comparatorpartitioner
- partitioner for keysBatchTupleTSet<K,V> addInput(java.lang.String key, StorableTBase<?> input)
BatchTupleTSet
saddInput
in interface AcceptingData<Tuple<K,V>>
key
- identifier for the inputinput
- input tset