public abstract class BinListCollector extends Object implements SplitCollector<TupleSequence,BinList>
| Constructor and Description |
|---|
BinListCollector(Combiner combiner,
long nbin)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BinList |
combine(BinList binList1,
BinList binList2)
Combines the content of two accumulators.
|
BinList |
createAccumulator()
Returns a new accumulator into which results can be collected.
|
static BinList |
createDefaultBinList(Combiner combiner,
long size)
Returns a BinList implementation suitable for a given number of
bins and a given combiner.
|
static BinList |
mergeBinLists(BinList binList1,
BinList binList2)
Returns a BinList with contents corresponding to the aggregation
of two input BinLists.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccumulatepublic BinListCollector(Combiner combiner, long nbin)
combiner - combination modenbin - bin index limitpublic BinList createAccumulator()
SplitCollectorcreateAccumulator in interface SplitCollector<TupleSequence,BinList>public BinList combine(BinList binList1, BinList binList2)
SplitCollectorcombine in interface SplitCollector<TupleSequence,BinList>binList1 - one input accumulatorbinList2 - other input accumulatorpublic static BinList createDefaultBinList(Combiner combiner, long size)
combiner - combinersize - maximum number of binspublic static BinList mergeBinLists(BinList binList1, BinList binList2)
This method will work for any BinList instances, but it is
intended for use with BinLists generated by
createDefaultBinList.
binList1 - first inputbinList2 - second inputCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.