org.gcube.portlets.user.speciesdiscovery.server.stream
Class CounterAggregator<T>
java.lang.Object
org.gcube.portlets.user.speciesdiscovery.server.stream.CounterAggregator<T>
- All Implemented Interfaces:
- Aggregator<T,HashMap<String,Integer>>
- Direct Known Subclasses:
- FieldAggregator
public abstract class CounterAggregator<T>
- extends Object
- implements Aggregator<T,HashMap<String,Integer>>
- Author:
- "Federico De Faveri defaveri@isti.cnr.it"
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected String name
aggregation
protected HashMap<String,Integer> aggregation
keyProvider
protected KeyProvider<T> keyProvider
CounterAggregator
public CounterAggregator(String name,
KeyProvider<T> keyProvider)
- Parameters:
name
-
getName
public String getName()
- Specified by:
getName
in interface Aggregator<T,HashMap<String,Integer>>
aggregate
public void aggregate(T input)
- Specified by:
aggregate
in interface Aggregator<T,HashMap<String,Integer>>
getAggregation
public HashMap<String,Integer> getAggregation()
-
- Specified by:
getAggregation
in interface Aggregator<T,HashMap<String,Integer>>
Copyright © 2013. All Rights Reserved.