storm.trident.operation.builtin
Class Count

java.lang.Object
  extended by storm.trident.operation.builtin.Count
All Implemented Interfaces:
Serializable, CombinerAggregator<Long>

public class Count
extends Object
implements CombinerAggregator<Long>

See Also:
Serialized Form

Constructor Summary
Count()
           
 
Method Summary
 Long combine(Long val1, Long val2)
           
 Long init(TridentTuple tuple)
           
 Long zero()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Count

public Count()
Method Detail

init

public Long init(TridentTuple tuple)
Specified by:
init in interface CombinerAggregator<Long>

combine

public Long combine(Long val1,
                    Long val2)
Specified by:
combine in interface CombinerAggregator<Long>

zero

public Long zero()
Specified by:
zero in interface CombinerAggregator<Long>


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.