public static final class AggregateGroupByRequest.Options extends Object
Modifier and Type | Field and Description | ||
---|---|---|---|
static String |
ASCENDING
Indicates that the returned values should be sorted in ascending
order.
|
||
static String |
CHUNK_COLUMN_MAX_MEMORY
Indicates the target maximum data size for each column in a chunk to
be used for the result table.
|
||
static String |
CHUNK_MAX_MEMORY
Indicates the target maximum data size for all columns in a chunk to
be used for the result table.
|
||
static String |
CHUNK_SIZE
Indicates the number of records per chunk to be used for the result
table.
|
||
static String |
CHUNKED_EXPRESSION_EVALUATION
evaluate the filter expression during group-by chunk processing.
|
||
static String |
COLLECTION_NAME
[DEPRECATED--please specify the containing schema as part of
RESULT_TABLE and use GPUdb.createSchema to create the schema if non-existent] Name of a
schema which is to contain the table specified in RESULT_TABLE . |
||
static String |
CREATE_INDEXES
Comma-separated list of columns on which to create indexes on the
result table.
|
||
static String |
CREATE_TEMP_TABLE
If
TRUE , a unique temporary table name will be
generated in the sys_temp schema and used in place of RESULT_TABLE . |
||
static String |
CUBE
This option is used to specify the multidimensional aggregates.
|
||
static String |
DESCENDING
Indicates that the returned values should be sorted in descending
order.
|
||
static String |
EXPRESSION
Filter expression to apply to the table prior to computing the
aggregate group by.
|
||
static String |
FALSE |
||
static String |
GROUPING_SETS
Customize the grouping attribute sets to compute the aggregates.
|
||
static String |
HAVING
Filter expression to apply to the aggregated results.
|
||
static String |
KEY
Indicates that the returned values should be sorted by key, which
corresponds to the grouping columns.
|
||
static String |
ORDER_BY
Comma-separated list of the columns to be sorted by as well as the
sort direction, e.g., 'timestamp asc, x desc'.
|
||
static String |
PIVOT
pivot column
|
||
static String |
PIVOT_VALUES
The value list provided will become the column headers in the
output.
|
||
static String |
RESULT_TABLE
The name of a table used to store the results, in
[schema_name.]table_name format, using standard
static String RESULT_TABLE_FORCE_REPLICATED
Force the result table to be replicated (ignores any sharding).
| ||
static String |
RESULT_TABLE_GENERATE_PK
If
TRUE then set a primary key for the result
table. |
||
static String |
RESULT_TABLE_PERSIST
If
TRUE , then the result table specified in
RESULT_TABLE will be persisted and will
not expire unless a TTL is specified. |
||
static String |
ROLLUP
This option is used to specify the multilevel aggregates.
|
||
static String |
SHARD_KEY
Comma-separated list of the columns to be sharded on;
e.g.
|
||
static String |
SORT_BY
[DEPRECATED--use order_by instead] String determining how the
results are sorted.
|
||
static String |
SORT_ORDER
[DEPRECATED--use order_by instead] String indicating how the
returned values should be sorted - ascending or descending.
|
||
static String |
STRATEGY_DEFINITION
| ||
static String |
TTL
| ||
static String |
VIEW_ID
ID of view of which the result table will be a member.
|
public static final String CREATE_TEMP_TABLE
TRUE
, a unique temporary table name will be
generated in the sys_temp schema and used in place of RESULT_TABLE
. If RESULT_TABLE_PERSIST
is FALSE
(or unspecified), then this is always allowed
even if the caller does not have permission to create tables. The
generated name is returned in QUALIFIED_RESULT_TABLE_NAME
.
Supported values:
The default value is FALSE
.public static final String TRUE
public static final String FALSE
public static final String COLLECTION_NAME
RESULT_TABLE
and use GPUdb.createSchema
to create the schema if non-existent] Name of a
schema which is to contain the table specified in RESULT_TABLE
. If the schema provided is
non-existent, it will be automatically created.public static final String EXPRESSION
public static final String CHUNKED_EXPRESSION_EVALUATION
FALSE
.public static final String HAVING
public static final String SORT_ORDER
ASCENDING
: Indicates that the
returned values should be sorted in ascending order.
DESCENDING
: Indicates that the
returned values should be sorted in descending order.
ASCENDING
.public static final String ASCENDING
public static final String DESCENDING
public static final String SORT_BY
KEY
: Indicates that the returned values
should be sorted by key, which corresponds to the grouping
columns. If you have multiple grouping columns (and are
sorting by key), it will first sort the first grouping
column, then the second grouping column, etc.
VALUE
: Indicates that the returned
values should be sorted by value, which corresponds to the
aggregates. If you have multiple aggregates (and are sorting
by value), it will first sort by the first aggregate, then
the second aggregate, etc.
VALUE
.public static final String KEY
public static final String VALUE
public static final String ORDER_BY
public static final String STRATEGY_DEFINITION
public static final String RESULT_TABLE
public static final String RESULT_TABLE_PERSIST
TRUE
, then the result table specified in
RESULT_TABLE
will be persisted and will
not expire unless a TTL
is specified. If
FALSE
, then the result table will be an
in-memory table and will expire unless a TTL
is
specified otherwise.
Supported values:
The default value is FALSE
.public static final String RESULT_TABLE_FORCE_REPLICATED
RESULT_TABLE
option.
Supported values:
The default value is FALSE
.public static final String RESULT_TABLE_GENERATE_PK
TRUE
then set a primary key for the result
table. Must be used in combination with the RESULT_TABLE
option.
Supported values:
The default value is FALSE
.public static final String TTL
RESULT_TABLE
.public static final String CHUNK_SIZE
RESULT_TABLE
option.public static final String CHUNK_COLUMN_MAX_MEMORY
RESULT_TABLE
option.public static final String CHUNK_MAX_MEMORY
RESULT_TABLE
option.public static final String CREATE_INDEXES
RESULT_TABLE
option.public static final String VIEW_ID
public static final String PIVOT
public static final String PIVOT_VALUES
public static final String GROUPING_SETS
public static final String ROLLUP
public static final String CUBE
public static final String SHARD_KEY
columnNames
. If any alias is given for
any column name, the alias must be used, rather than the original
column name. The default value is ''.Copyright © 2025. All rights reserved.