org.apache.blur.mapreduce.lib
Class RateCounter

java.lang.Object
  extended by org.apache.blur.mapreduce.lib.RateCounter

public class RateCounter
extends Object

This turns a standard hadoop counter into a rate counter.


Constructor Summary
RateCounter(org.apache.hadoop.mapreduce.Counter counter)
           
RateCounter(org.apache.hadoop.mapreduce.Counter counter, TimeUnit unit, long reportTime)
           
 
Method Summary
 void close()
           
 void mark()
           
 void mark(long n)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RateCounter

public RateCounter(org.apache.hadoop.mapreduce.Counter counter)

RateCounter

public RateCounter(org.apache.hadoop.mapreduce.Counter counter,
                   TimeUnit unit,
                   long reportTime)
Method Detail

mark

public void mark()

mark

public void mark(long n)

close

public void close()


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