public class AggregateStatisticsRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.aggregateStatistics(AggregateStatisticsRequest)
.
options
. The weighted average is then
defined as the sum of the products of columnName
times the weight attribute divided by the sum of the weight attribute.
Modifier and Type | Class and Description |
---|---|
static class |
AggregateStatisticsRequest.Options
Optional parameters.
|
static class |
AggregateStatisticsRequest.Stats
Comma separated list of the statistics to calculate, e.g.
|
Constructor and Description |
---|
AggregateStatisticsRequest()
Constructs an AggregateStatisticsRequest object with default parameters.
|
AggregateStatisticsRequest(String tableName,
String columnName,
String stats,
Map<String,String> options)
Constructs an AggregateStatisticsRequest object with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called directly by the user.
|
String |
getColumnName() |
Map<String,String> |
getOptions() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called directly by the user.
|
String |
getStats() |
String |
getTableName() |
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called directly by the user.
|
AggregateStatisticsRequest |
setColumnName(String columnName) |
AggregateStatisticsRequest |
setOptions(Map<String,String> options) |
AggregateStatisticsRequest |
setStats(String stats) |
AggregateStatisticsRequest |
setTableName(String tableName) |
String |
toString() |
public AggregateStatisticsRequest()
public AggregateStatisticsRequest(String tableName, String columnName, String stats, Map<String,String> options)
tableName
- Name of the table on which the statistics operation will be performed.columnName
- Name of the column for which the statistics are to be calculated.stats
- Comma separated list of the statistics to calculate, e.g. "sum,mean". Values: count, mean, stdv, variance,
skew, kurtosis, sum, min, max, weighted_average, cardinality, estimated_cardinality, percentile,
percentile_rank.options
- Optional parameters.
public static org.apache.avro.Schema getClassSchema()
public String getTableName()
public AggregateStatisticsRequest setTableName(String tableName)
tableName
- Name of the table on which the statistics operation will be performed.this
to mimic the builder pattern.public String getColumnName()
public AggregateStatisticsRequest setColumnName(String columnName)
columnName
- Name of the column for which the statistics are to be calculated.this
to mimic the builder pattern.public String getStats()
public AggregateStatisticsRequest setStats(String stats)
stats
- Comma separated list of the statistics to calculate, e.g. "sum,mean". Values: count, mean, stdv, variance,
skew, kurtosis, sum, min, max, weighted_average, cardinality, estimated_cardinality, percentile,
percentile_rank.this
to mimic the builder pattern.public Map<String,String> getOptions()
public AggregateStatisticsRequest setOptions(Map<String,String> options)
options
- Optional parameters.
this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2016. All rights reserved.