Package net.sansa_stack.hadoop.core
Interface Accumulating<T,G,A,U>
- Type Parameters:
T- The item typeG- The group key type - items are mapped to group keysA- The accumulator typeU- The 'finalizer' - maps an accumulator to a final value
- All Known Implementing Classes:
RecordReaderRdfTrigDataset.AccumulatingDataset
public interface Accumulating<T,G,A,U>
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccumulate(A accumulator, T item) accumulatedValue(A accumulator) createAccumulator(G groupKey) static <T> Accumulatingidentity()Identity accumulator - turns each item into a group that contains only the item and whose value is the item
-
Method Details
-
classify
-
createAccumulator
-
accumulate
-
accumulatedValue
-
identity
Identity accumulator - turns each item into a group that contains only the item and whose value is the item- Type Parameters:
T-- Returns:
-