public class ParallelCombiner<KeyType> extends Object
| Constructor and Description | 
|---|
ParallelCombiner(com.google.common.base.Supplier<ResourceHolder<ByteBuffer>> combineBufferSupplier,
                AggregatorFactory[] combiningFactories,
                Grouper.KeySerdeFactory<KeyType> combineKeySerdeFactory,
                com.google.common.util.concurrent.ListeningExecutorService executor,
                boolean sortHasNonGroupingFields,
                int concurrencyHint,
                int priority,
                long queryTimeoutAt,
                int intermediateCombineDegree)  | 
| Modifier and Type | Method and Description | 
|---|---|
CloseableIterator<Grouper.Entry<KeyType>> | 
combine(List<? extends CloseableIterator<Grouper.Entry<KeyType>>> sortedIterators,
       List<String> mergedDictionary)
Build a combining tree for the input iterators which combine input entries asynchronously. 
 | 
public ParallelCombiner(com.google.common.base.Supplier<ResourceHolder<ByteBuffer>> combineBufferSupplier, AggregatorFactory[] combiningFactories, Grouper.KeySerdeFactory<KeyType> combineKeySerdeFactory, com.google.common.util.concurrent.ListeningExecutorService executor, boolean sortHasNonGroupingFields, int concurrencyHint, int priority, long queryTimeoutAt, int intermediateCombineDegree)
public CloseableIterator<Grouper.Entry<KeyType>> combine(List<? extends CloseableIterator<Grouper.Entry<KeyType>>> sortedIterators, List<String> mergedDictionary)
This method is called when data is spilled and thus streaming combine is preferred to avoid too many disk accesses.
Copyright © 2011–2018. All rights reserved.