|
||||||||||
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.Private 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(HTable table,
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. |
|
|
avg(TableName 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(HTable table,
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. |
|
|
max(TableName 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(HTable table,
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. |
|
|
median(TableName 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(HTable table,
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. |
|
|
min(TableName 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(HTable table,
ColumnInterpreter<R,S,P,Q,T> ci,
Scan scan)
It gives the row count, by summing up the individual results obtained from regions. |
|
|
rowCount(TableName 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(HTable table,
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. |
|
|
std(TableName 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(HTable table,
ColumnInterpreter<R,S,P,Q,T> ci,
Scan scan)
It sums up the value returned from various regions. |
|
|
sum(TableName 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(TableName 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 max(HTable table, ColumnInterpreter<R,S,P,Q,T> ci, Scan scan) throws Throwable
table
- 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(TableName 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 min(HTable table, ColumnInterpreter<R,S,P,Q,T> ci, Scan scan) throws Throwable
table
- 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(TableName 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(HTable table, ColumnInterpreter<R,S,P,Q,T> ci, Scan scan) throws Throwable
table
- 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(TableName 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(HTable table, ColumnInterpreter<R,S,P,Q,T> ci, Scan scan) throws Throwable
table
- 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(TableName 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(HTable table, ColumnInterpreter<R,S,P,Q,T> ci, Scan scan) throws Throwable
table
- 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(TableName 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(HTable table, ColumnInterpreter<R,S,P,Q,T> ci, Scan scan) throws Throwable
table
- 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(TableName 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(HTable table, ColumnInterpreter<R,S,P,Q,T> ci, Scan scan) throws Throwable
table
- ci
- scan
-
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |