Class MaxCombiner
java.lang.Object
org.apache.accumulo.core.iterators.WrappingIterator
org.apache.accumulo.core.iterators.Combiner
org.apache.accumulo.core.iterators.TypedValueCombiner<Long>
org.apache.accumulo.core.iterators.LongCombiner
org.apache.accumulo.core.iterators.user.MaxCombiner
- All Implemented Interfaces:
OptionDescriber,SortedKeyValueIterator<Key,,Value> YieldingKeyValueIterator<Key,Value>
A Combiner that interprets Values as Longs and returns the largest Long among them.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.accumulo.core.iterators.LongCombiner
LongCombiner.FixedLenEncoder, LongCombiner.StringEncoder, LongCombiner.Type, LongCombiner.VarLenEncoderNested classes/interfaces inherited from class org.apache.accumulo.core.iterators.Combiner
Combiner.ValueIteratorNested classes/interfaces inherited from interface org.apache.accumulo.core.iterators.OptionDescriber
OptionDescriber.IteratorOptions -
Field Summary
Fields inherited from class org.apache.accumulo.core.iterators.LongCombiner
CLASS_PREFIX, FIXED_LEN_ENCODER, STRING_ENCODER, TYPE, VAR_LEN_ENCODERFields inherited from class org.apache.accumulo.core.iterators.TypedValueCombiner
LOSSYFields inherited from class org.apache.accumulo.core.iterators.Combiner
ALL_OPTION, COLUMNS_OPTION, REDUCE_ON_FULL_COMPACTION_ONLY_OPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets an iterator options object that contains information needed to configure this iterator.typedReduce(Key key, Iterator<Long> iter) Reduces a list of V into a single V.Methods inherited from class org.apache.accumulo.core.iterators.LongCombiner
init, safeAdd, setEncodingType, setEncodingType, setEncodingType, validateOptionsMethods inherited from class org.apache.accumulo.core.iterators.TypedValueCombiner
deepCopy, reduce, setEncoder, setEncoder, setLossyness, testEncoder, testEncoderMethods inherited from class org.apache.accumulo.core.iterators.Combiner
getTopKey, getTopValue, hasTop, next, seek, setColumns, setCombineAllColumns, setReduceOnFullCompactionOnlyMethods inherited from class org.apache.accumulo.core.iterators.WrappingIterator
getSource, setSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.accumulo.core.iterators.YieldingKeyValueIterator
enableYielding
-
Constructor Details
-
MaxCombiner
public MaxCombiner()
-
-
Method Details
-
typedReduce
Description copied from class:TypedValueCombinerReduces a list of V into a single V.- Specified by:
typedReducein classTypedValueCombiner<Long>- Parameters:
key- The most recent version of the Key being reduced.iter- An iterator over the V for different versions of the key.- Returns:
- The combined V.
-
describeOptions
Description copied from interface:OptionDescriberGets an iterator options object that contains information needed to configure this iterator. This object will be used by the accumulo shell to prompt the user to input the appropriate information.- Specified by:
describeOptionsin interfaceOptionDescriber- Overrides:
describeOptionsin classLongCombiner- Returns:
- an iterator options object
-