Class WriteHeavyIncrementObserver

java.lang.Object
org.apache.hadoop.hbase.coprocessor.example.WriteHeavyIncrementObserver
All Implemented Interfaces:
Coprocessor, RegionCoprocessor, RegionObserver

@Private public class WriteHeavyIncrementObserver extends Object implements RegionCoprocessor, RegionObserver
An example for implementing a counter that reads is much less than writes, i.e, write heavy.

We will convert increment to put, and do aggregating when get. And of course the return value of increment is useless then.

Notice that this is only an example so we do not handle most corner cases, for example, you must provide a qualifier when doing a get.