com.hazelcast.mapreduce.aggregation.impl
Class LongAvgAggregation<Key,Value>

java.lang.Object
  extended by com.hazelcast.mapreduce.aggregation.impl.LongAvgAggregation<Key,Value>
Type Parameters:
Key - the input key type
Value - the input value type
All Implemented Interfaces:
AggType<Key,Value,Key,Long,AvgTuple<Long,Long>,AvgTuple<Long,Long>,Long>

public class LongAvgAggregation<Key,Value>
extends Object
implements AggType<Key,Value,Key,Long,AvgTuple<Long,Long>,AvgTuple<Long,Long>,Long>

The predefined average aggregation for values of type long.


Constructor Summary
LongAvgAggregation()
           
 
Method Summary
 Collator<Map.Entry<Key,AvgTuple<Long,Long>>,Long> getCollator()
           
 CombinerFactory<Key,Long,AvgTuple<Long,Long>> getCombinerFactory()
           
 Mapper<Key,Value,Key,Long> getMapper(Supplier<Key,Value,Long> supplier)
           
 ReducerFactory<Key,AvgTuple<Long,Long>,AvgTuple<Long,Long>> getReducerFactory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongAvgAggregation

public LongAvgAggregation()
Method Detail

getCollator

public Collator<Map.Entry<Key,AvgTuple<Long,Long>>,Long> getCollator()
Specified by:
getCollator in interface AggType<Key,Value,Key,Long,AvgTuple<Long,Long>,AvgTuple<Long,Long>,Long>

getMapper

public Mapper<Key,Value,Key,Long> getMapper(Supplier<Key,Value,Long> supplier)
Specified by:
getMapper in interface AggType<Key,Value,Key,Long,AvgTuple<Long,Long>,AvgTuple<Long,Long>,Long>

getCombinerFactory

public CombinerFactory<Key,Long,AvgTuple<Long,Long>> getCombinerFactory()
Specified by:
getCombinerFactory in interface AggType<Key,Value,Key,Long,AvgTuple<Long,Long>,AvgTuple<Long,Long>,Long>

getReducerFactory

public ReducerFactory<Key,AvgTuple<Long,Long>,AvgTuple<Long,Long>> getReducerFactory()
Specified by:
getReducerFactory in interface AggType<Key,Value,Key,Long,AvgTuple<Long,Long>,AvgTuple<Long,Long>,Long>


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.