Class CoreKeyGroupByAggregatorIterator
- java.lang.Object
-
- org.apache.accumulo.core.iterators.WrappingIterator
-
- uk.gov.gchq.gaffer.accumulostore.key.core.impl.CoreKeyGroupByCombiner
-
- uk.gov.gchq.gaffer.accumulostore.key.core.impl.CoreKeyGroupByAggregatorIterator
-
- All Implemented Interfaces:
org.apache.accumulo.core.iterators.OptionDescriber
,org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>
,org.apache.accumulo.core.iterators.YieldingKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>
public class CoreKeyGroupByAggregatorIterator extends CoreKeyGroupByCombiner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class uk.gov.gchq.gaffer.accumulostore.key.core.impl.CoreKeyGroupByCombiner
CoreKeyGroupByCombiner.KeyValueIterator
-
-
Constructor Summary
Constructors Constructor Description CoreKeyGroupByAggregatorIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.accumulo.core.iterators.OptionDescriber.IteratorOptions
describeOptions()
Properties
reduce(String group, org.apache.accumulo.core.data.Key key, Iterator<Properties> iter, Set<String> groupBy, ElementAggregator viewAggregator)
Reduces an iterator ofProperties
into a single Properties object.-
Methods inherited from class uk.gov.gchq.gaffer.accumulostore.key.core.impl.CoreKeyGroupByCombiner
deepCopy, getTopKey, getTopValue, hasTop, init, next, seek, validateOptions
-
-
-
-
Method Detail
-
reduce
public Properties reduce(String group, org.apache.accumulo.core.data.Key key, Iterator<Properties> iter, Set<String> groupBy, ElementAggregator viewAggregator)
Description copied from class:CoreKeyGroupByCombiner
Reduces an iterator ofProperties
into a single Properties object.- Specified by:
reduce
in classCoreKeyGroupByCombiner
- Parameters:
group
- the schema group taken from the keykey
- The most recent version of the Key being reduced.iter
- An iterator over allProperties
for different versions of the key.groupBy
- the groupBy propertiesviewAggregator
- an optional view aggregator- Returns:
- The combined
Properties
.
-
describeOptions
public org.apache.accumulo.core.iterators.OptionDescriber.IteratorOptions describeOptions()
- Specified by:
describeOptions
in interfaceorg.apache.accumulo.core.iterators.OptionDescriber
- Overrides:
describeOptions
in classCoreKeyGroupByCombiner
-
-