public class CollectStatisticsRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.collectStatistics
.
Collect statistics for a column(s) in a specified table.
Constructor and Description |
---|
CollectStatisticsRequest()
Constructs a CollectStatisticsRequest object with default parameters.
|
CollectStatisticsRequest(String tableName,
List<String> columnNames,
Map<String,String> options)
Constructs a CollectStatisticsRequest 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.
|
List<String> |
getColumnNames()
List of one or more column names in
tableName
for which to collect statistics (cardinality, mean value, etc.). |
Map<String,String> |
getOptions()
Optional parameters.
|
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getTableName()
|
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
CollectStatisticsRequest |
setColumnNames(List<String> columnNames)
List of one or more column names in
tableName
for which to collect statistics (cardinality, mean value, etc.). |
CollectStatisticsRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
CollectStatisticsRequest |
setTableName(String tableName)
|
public CollectStatisticsRequest()
public CollectStatisticsRequest(String tableName, List<String> columnNames, Map<String,String> options)
tableName
- Name of a table, in [schema_name.]table_name format,
using standard name resolution rules. Must be an
existing table.columnNames
- List of one or more column names in tableName
for which to collect statistics
(cardinality, mean value, etc.).options
- Optional parameters. The default value is an empty
Map
.public static org.apache.avro.Schema getClassSchema()
public String getTableName()
tableName
.public CollectStatisticsRequest setTableName(String tableName)
tableName
- The new value for tableName
.this
to mimic the builder pattern.public List<String> getColumnNames()
tableName
for which to collect statistics (cardinality, mean value, etc.).columnNames
.public CollectStatisticsRequest setColumnNames(List<String> columnNames)
tableName
for which to collect statistics (cardinality, mean value, etc.).columnNames
- The new value for columnNames
.this
to mimic the builder pattern.public Map<String,String> getOptions()
Map
.options
.public CollectStatisticsRequest setOptions(Map<String,String> options)
Map
.options
- The new value for options
.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 © 2025. All rights reserved.