org.apache.accumulo.core.iterators.user
public class SummingCombiner extends LongCombiner
LongCombiner.FixedLenEncoder, LongCombiner.StringEncoder, LongCombiner.Type, LongCombiner.VarLenEncoder
TypedValueCombiner.Encoder<V>
Combiner.ValueIterator
OptionDescriber.IteratorOptions
CLASS_PREFIX, FIXED_LEN_ENCODER, STRING_ENCODER, TYPE, VAR_LEN_ENCODER
LOSSY
ALL_OPTION, COLUMNS_OPTION
Constructor and Description |
---|
SummingCombiner() |
Modifier and Type | Method and Description |
---|---|
OptionDescriber.IteratorOptions |
describeOptions()
Gets an iterator options object that contains information needed to configure this iterator.
|
Long |
typedReduce(Key key,
Iterator<Long> iter)
Reduces a list of V into a single V.
|
init, safeAdd, setEncodingType, setEncodingType, setEncodingType, validateOptions
deepCopy, reduce, setEncoder, setEncoder, setLossyness, testEncoder, testEncoder
getTopKey, getTopValue, hasTop, next, seek, setColumns, setCombineAllColumns
getSource, setSource
public Long typedReduce(Key key, Iterator<Long> iter)
TypedValueCombiner
typedReduce
in class TypedValueCombiner<Long>
key
- The most recent version of the Key being reduced.iter
- An iterator over the V for different versions of the key.public OptionDescriber.IteratorOptions describeOptions()
OptionDescriber
describeOptions
in interface OptionDescriber
describeOptions
in class LongCombiner
Copyright © 2014 Apache Accumulo Project. All rights reserved.