public class AggregationClient extends Object
This will serve as the client side handler for invoking the aggregate functions.
HConstants.EMPTY_BYTE_ARRAY
)
Constructor and Description |
---|
AggregationClient(org.apache.hadoop.conf.Configuration cfg)
Constructor with Conf object
|
Modifier and Type | Method and Description |
---|---|
<R,S> double |
avg(byte[] tableName,
ColumnInterpreter<R,S> ci,
Scan scan)
This is the client side interface/handle for calling the average method for
a given cf-cq combination.
|
<R,S> R |
max(byte[] tableName,
ColumnInterpreter<R,S> ci,
Scan scan)
It gives the maximum value of a column for a given column family for the
given range.
|
<R,S> R |
median(byte[] tableName,
ColumnInterpreter<R,S> ci,
Scan scan)
This is the client side interface/handler for calling the median method for a
given cf-cq combination.
|
<R,S> R |
min(byte[] tableName,
ColumnInterpreter<R,S> ci,
Scan scan)
It gives the minimum value of a column for a given column family for the
given range.
|
<R,S> long |
rowCount(byte[] tableName,
ColumnInterpreter<R,S> ci,
Scan scan)
It gives the row count, by summing up the individual results obtained from
regions.
|
<R,S> double |
std(byte[] tableName,
ColumnInterpreter<R,S> ci,
Scan scan)
This is the client side interface/handle for calling the std method for a
given cf-cq combination.
|
<R,S> S |
sum(byte[] tableName,
ColumnInterpreter<R,S> ci,
Scan scan)
It sums up the value returned from various regions.
|
public AggregationClient(org.apache.hadoop.conf.Configuration cfg)
cfg
- public <R,S> R max(byte[] tableName, ColumnInterpreter<R,S> 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> R min(byte[] tableName, ColumnInterpreter<R,S> ci, Scan scan) throws Throwable
tableName
- ci
- scan
- Throwable
public <R,S> long rowCount(byte[] tableName, ColumnInterpreter<R,S> ci, Scan scan) throws Throwable
tableName
- ci
- scan
- Throwable
public <R,S> S sum(byte[] tableName, ColumnInterpreter<R,S> ci, Scan scan) throws Throwable
tableName
- ci
- scan
- Throwable
public <R,S> double avg(byte[] tableName, ColumnInterpreter<R,S> ci, Scan scan) throws Throwable
tableName
- ci
- scan
- Throwable
public <R,S> double std(byte[] tableName, ColumnInterpreter<R,S> ci, Scan scan) throws Throwable
tableName
- ci
- scan
- Throwable
public <R,S> R median(byte[] tableName, ColumnInterpreter<R,S> ci, Scan scan) throws Throwable
tableName
- ci
- scan
- Throwable
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.