|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.client.coprocessor.AggregationClient
@InterfaceAudience.Public @InterfaceStability.Evolving public class AggregationClient
This client class is for invoking the aggregate functions deployed on the Region Server side via the AggregateService. This class will implement the supporting functionality for summing/processing the individual results obtained from the AggregateService for each region.
This will serve as the client side handler for invoking the aggregate functions.
HConstants.EMPTY_BYTE_ARRAY
)
Constructor Summary | |
---|---|
AggregationClient(org.apache.hadoop.conf.Configuration cfg)
Constructor with Conf object |
Method Summary | ||
---|---|---|
|
avg(byte[] tableName,
ColumnInterpreter<R,S,P,Q,T> ci,
Scan scan)
This is the client side interface/handle for calling the average method for a given cf-cq combination. |
|
|
max(byte[] tableName,
ColumnInterpreter<R,S,P,Q,T> ci,
Scan scan)
It gives the maximum value of a column for a given column family for the given range. |
|
|
median(byte[] tableName,
ColumnInterpreter<R,S,P,Q,T> ci,
Scan scan)
This is the client side interface/handler for calling the median method for a given cf-cq combination. |
|
|
min(byte[] tableName,
ColumnInterpreter<R,S,P,Q,T> ci,
Scan scan)
It gives the minimum value of a column for a given column family for the given range. |
|
|
rowCount(byte[] tableName,
ColumnInterpreter<R,S,P,Q,T> ci,
Scan scan)
It gives the row count, by summing up the individual results obtained from regions. |
|
|
std(byte[] tableName,
ColumnInterpreter<R,S,P,Q,T> ci,
Scan scan)
This is the client side interface/handle for calling the std method for a given cf-cq combination. |
|
|
sum(byte[] tableName,
ColumnInterpreter<R,S,P,Q,T> ci,
Scan scan)
It sums up the value returned from various regions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AggregationClient(org.apache.hadoop.conf.Configuration cfg)
cfg
- Method Detail |
---|
public <R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> R max(byte[] tableName, ColumnInterpreter<R,S,P,Q,T> ci, Scan scan) throws Throwable
tableName
- ci
- scan
-
Throwable
- The caller is supposed to handle the exception as they are thrown
& propagated to it.public <R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> R min(byte[] tableName, ColumnInterpreter<R,S,P,Q,T> ci, Scan scan) throws Throwable
tableName
- ci
- scan
-
Throwable
public <R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> long rowCount(byte[] tableName, ColumnInterpreter<R,S,P,Q,T> ci, Scan scan) throws Throwable
tableName
- ci
- scan
-
Throwable
public <R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> S sum(byte[] tableName, ColumnInterpreter<R,S,P,Q,T> ci, Scan scan) throws Throwable
tableName
- ci
- scan
-
Throwable
public <R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> double avg(byte[] tableName, ColumnInterpreter<R,S,P,Q,T> ci, Scan scan) throws Throwable
tableName
- ci
- scan
-
Throwable
public <R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> double std(byte[] tableName, ColumnInterpreter<R,S,P,Q,T> ci, Scan scan) throws Throwable
tableName
- ci
- scan
-
Throwable
public <R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> R median(byte[] tableName, ColumnInterpreter<R,S,P,Q,T> ci, Scan scan) throws Throwable
tableName
- ci
- scan
-
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |