@InterfaceAudience.Public public class AggregationClient extends Object implements Closeable
This will serve as the client side handler for invoking the aggregate functions. For all aggregate functions,
HConstants.EMPTY_BYTE_ARRAY)
Call close() when done.
| Constructor and Description |
|---|
AggregationClient(org.apache.hadoop.conf.Configuration cfg)
Constructor with Conf object
|
| Modifier and Type | Method and Description |
|---|---|
<R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> |
avg(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
This is the client side interface/handle for calling the average method for
a given cf-cq combination.
|
<R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> |
avg(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
This is the client side interface/handle for calling the average method for
a given cf-cq combination.
|
void |
close() |
<R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> |
max(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
It gives the maximum value of a column for a given column family for the
given range.
|
<R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> |
max(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
It gives the maximum value of a column for a given column family for the
given range.
|
<R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> |
median(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
This is the client side interface/handler for calling the median method for a
given cf-cq combination.
|
<R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> |
median(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
This is the client side interface/handler for calling the median method for a
given cf-cq combination.
|
<R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> |
min(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
It gives the minimum value of a column for a given column family for the
given range.
|
<R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> |
min(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
It gives the minimum value of a column for a given column family for the
given range.
|
<R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> |
rowCount(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
It gives the row count, by summing up the individual results obtained from
regions.
|
<R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> |
rowCount(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
It gives the row count, by summing up the individual results obtained from
regions.
|
<R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> |
std(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
This is the client side interface/handle for calling the std method for a
given cf-cq combination.
|
<R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> |
std(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
This is the client side interface/handle for calling the std method for a
given cf-cq combination.
|
<R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> |
sum(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
It sums up the value returned from various regions.
|
<R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> |
sum(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
It sums up the value returned from various regions.
|
public AggregationClient(org.apache.hadoop.conf.Configuration cfg)
cfg - Configuration to usepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic <R,S,P extends com.google.protobuf.Message,Q extends com.google.protobuf.Message,T extends com.google.protobuf.Message> R max(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
throws Throwable
tableName - the name of the table to scanci - the user's ColumnInterpreter implementationscan - the HBase scan object to use to read data from HBaseThrowable - 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(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
throws Throwable
table - table to scan.ci - the user's ColumnInterpreter implementationscan - the HBase scan object to use to read data from HBaseThrowable - 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(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
throws Throwable
tableName - the name of the table to scanci - the user's ColumnInterpreter implementationscan - the HBase scan object to use to read data from HBaseThrowable - 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(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
throws Throwable
table - table to scan.ci - the user's ColumnInterpreter implementationscan - the HBase scan object to use to read data from HBaseThrowable - 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> long rowCount(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
throws Throwable
tableName - the name of the table to scanci - the user's ColumnInterpreter implementationscan - the HBase scan object to use to read data from HBaseThrowable - 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> long rowCount(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
throws Throwable
table - table to scan.ci - the user's ColumnInterpreter implementationscan - the HBase scan object to use to read data from HBaseThrowable - 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> S sum(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
throws Throwable
tableName - the name of the table to scanci - the user's ColumnInterpreter implementationscan - the HBase scan object to use to read data from HBaseThrowable - 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> S sum(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
throws Throwable
table - table to scan.ci - the user's ColumnInterpreter implementationscan - the HBase scan object to use to read data from HBaseThrowable - 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> double avg(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
throws Throwable
tableName - the name of the table to scanci - the user's ColumnInterpreter implementationscan - the HBase scan object to use to read data from HBaseThrowable - 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> double avg(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
throws Throwable
table - table to scan.ci - the user's ColumnInterpreter implementationscan - the HBase scan object to use to read data from HBaseThrowable - 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> double std(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
throws Throwable
tableName - the name of the table to scanci - the user's ColumnInterpreter implementationscan - the HBase scan object to use to read data from HBaseThrowable - 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> double std(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
throws Throwable
table - table to scan.ci - the user's ColumnInterpreter implementationscan - the HBase scan object to use to read data from HBaseThrowable - 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 median(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
throws Throwable
tableName - the name of the table to scanci - the user's ColumnInterpreter implementationscan - the HBase scan object to use to read data from HBaseThrowable - 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 median(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<R,S,P,Q,T> ci,
org.apache.hadoop.hbase.client.Scan scan)
throws Throwable
table - table to scan.ci - the user's ColumnInterpreter implementationscan - the HBase scan object to use to read data from HBaseThrowable - The caller is supposed to handle the exception as they are thrown
& propagated to it.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.