public interface AggregateProtocol extends CoprocessorProtocol
AggregateImplementation
, only one column family and column qualifier
combination is served. In case there are more than one, only first one will
be picked. Refer to AggregationClient
for some general conditions on
input parameters.Modifier and Type | Field and Description |
---|---|
static long |
VERSION |
Modifier and Type | Method and Description |
---|---|
<T,S> Pair<S,Long> |
getAvg(ColumnInterpreter<T,S> ci,
Scan scan)
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.
|
<T,S> T |
getMax(ColumnInterpreter<T,S> ci,
Scan scan)
Gives the maximum for a given combination of column qualifier and column
family, in the given row range as defined in the Scan object.
|
<T,S> List<S> |
getMedian(ColumnInterpreter<T,S> ci,
Scan scan)
Gives a List containing sum of values and sum of weights.
|
<T,S> T |
getMin(ColumnInterpreter<T,S> ci,
Scan scan)
Gives the minimum for a given combination of column qualifier and column
family, in the given row range as defined in the Scan object.
|
<T,S> long |
getRowNum(ColumnInterpreter<T,S> ci,
Scan scan) |
<T,S> Pair<List<S>,Long> |
getStd(ColumnInterpreter<T,S> ci,
Scan scan)
Gives a Pair with first object a List containing Sum and sum of squares,
and the second object as row count.
|
<T,S> S |
getSum(ColumnInterpreter<T,S> ci,
Scan scan)
Gives the sum for a given combination of column qualifier and column
family, in the given row range as defined in the Scan object.
|
getProtocolSignature, getProtocolVersion
static final long VERSION
<T,S> T getMax(ColumnInterpreter<T,S> ci, Scan scan) throws IOException
ci
- scan
- IOException
<T,S> T getMin(ColumnInterpreter<T,S> ci, Scan scan) throws IOException
ci
- scan
- IOException
<T,S> S getSum(ColumnInterpreter<T,S> ci, Scan scan) throws IOException
ci
- scan
- IOException
<T,S> long getRowNum(ColumnInterpreter<T,S> ci, Scan scan) throws IOException
ci
- scan
- IOException
<T,S> Pair<S,Long> getAvg(ColumnInterpreter<T,S> ci, Scan scan) throws IOException
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.
ci
- scan
- IOException
<T,S> Pair<List<S>,Long> getStd(ColumnInterpreter<T,S> ci, Scan scan) throws IOException
ci
- scan
- IOException
<T,S> List<S> getMedian(ColumnInterpreter<T,S> ci, Scan scan) throws IOException
ci
- scan
- IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.