T - Cell value data typeS - Promoted data typeP - PB message that is used to transport initializer specific bytesQ - PB message that is used to transport Cell (R - PB message that is used to transport Promoted (@InterfaceAudience.Private public class AggregateImplementation<T,S,P extends Message,Q extends Message,R extends Message> extends AggregateProtos.AggregateService implements CoprocessorService, Coprocessor
ColumnInterpreter is used to interpret column value. This class is
 parameterized with the following (these are the types with which the ColumnInterpreter
 is parameterized, and for more description on these, refer to ColumnInterpreter):AggregateProtos.AggregateService.BlockingInterface, AggregateProtos.AggregateService.Interface, AggregateProtos.AggregateService.StubCoprocessor.State| Modifier and Type | Field and Description | 
|---|---|
protected static Log | 
log  | 
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION| Constructor and Description | 
|---|
AggregateImplementation()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
getAvg(RpcController controller,
      AggregateProtos.AggregateRequest request,
      <any> done)
Gives a Pair with first object as Sum and second object as row count,
 computed for a given combination of column qualifier and column family in
 the given row range as defined in the Scan object. 
 | 
void | 
getMax(RpcController controller,
      AggregateProtos.AggregateRequest request,
      <any> done)
Gives the maximum for a given combination of column qualifier and column
 family, in the given row range as defined in the Scan object. 
 | 
void | 
getMedian(RpcController controller,
         AggregateProtos.AggregateRequest request,
         <any> done)
Gives a List containing sum of values and sum of weights. 
 | 
void | 
getMin(RpcController controller,
      AggregateProtos.AggregateRequest request,
      <any> done)
Gives the minimum for a given combination of column qualifier and column
 family, in the given row range as defined in the Scan object. 
 | 
void | 
getRowNum(RpcController controller,
         AggregateProtos.AggregateRequest request,
         <any> done)
Gives the row count for the given column family and column qualifier, in
 the given row range as defined in the Scan object. 
 | 
Service | 
getService()  | 
void | 
getStd(RpcController controller,
      AggregateProtos.AggregateRequest request,
      <any> done)
Gives a Pair with first object a List containing Sum and sum of squares,
 and the second object as row count. 
 | 
void | 
getSum(RpcController controller,
      AggregateProtos.AggregateRequest request,
      <any> done)
Gives the sum for a given combination of column qualifier and column
 family, in the given row range as defined in the Scan object. 
 | 
void | 
start(CoprocessorEnvironment env)
Stores a reference to the coprocessor environment provided by the
  
RegionCoprocessorHost from the region where this
 coprocessor is loaded. | 
void | 
stop(CoprocessorEnvironment env)  | 
callMethod, getDescriptor, getDescriptorForType, getRequestPrototype, getResponsePrototype, newBlockingStub, newReflectiveBlockingService, newReflectiveService, newStubpublic void getMax(RpcController controller,
                   AggregateProtos.AggregateRequest request,
                   <any> done)
getMax in class AggregateProtos.AggregateServicepublic void getMin(RpcController controller,
                   AggregateProtos.AggregateRequest request,
                   <any> done)
getMin in class AggregateProtos.AggregateServicepublic void getSum(RpcController controller,
                   AggregateProtos.AggregateRequest request,
                   <any> done)
getSum in class AggregateProtos.AggregateServicepublic void getRowNum(RpcController controller,
                      AggregateProtos.AggregateRequest request,
                      <any> done)
getRowNum in class AggregateProtos.AggregateServiceIOExceptionpublic void getAvg(RpcController controller,
                   AggregateProtos.AggregateRequest request,
                   <any> done)
The average is computed in AggregationClient#avg(byte[], ColumnInterpreter, Scan) by processing results from all regions, so its "ok" to pass sum and a Long type.
getAvg in class AggregateProtos.AggregateServicepublic void getStd(RpcController controller,
                   AggregateProtos.AggregateRequest request,
                   <any> done)
getStd in class AggregateProtos.AggregateServicepublic void getMedian(RpcController controller,
                      AggregateProtos.AggregateRequest request,
                      <any> done)
getMedian in class AggregateProtos.AggregateServicepublic Service getService()
getService in interface CoprocessorServicepublic void start(CoprocessorEnvironment env) throws IOException
RegionCoprocessorHost from the region where this
 coprocessor is loaded.  Since this is a coprocessor endpoint, it always expects to be loaded
 on a table region, so always expects this to be an instance of
 RegionCoprocessorEnvironment.start in interface Coprocessorenv - the environment provided by the coprocessor hostIOException - if the provided environment is not an instance of
 RegionCoprocessorEnvironmentpublic void stop(CoprocessorEnvironment env) throws IOException
stop in interface CoprocessorIOException