public static final class AggregateGroupByRequest.Options extends Object
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
. 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
.
COLLECTION_NAME
: [DEPRECATED--please specify the containing schema as
part of result_table
and use GPUdb.createSchema(CreateSchemaRequest)
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.
EXPRESSION
: Filter expression to apply to the table prior to computing
the aggregate group by.
HAVING
:
Filter expression to apply to the aggregated results.
SORT_ORDER
: String indicating how the returned values should be sorted
- ascending or descending.
Supported values:
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
.
SORT_BY
:
String determining how the results are sorted.
Supported values:
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
.
STRATEGY_DEFINITION
: The tier
strategy for the table and its columns.
RESULT_TABLE
: The name of a table used to store the results, in
[schema_name.]table_name format, using standard name resolution rules and meeting table naming criteria. Column names (group-by and
aggregate fields) need to be given aliases e.g. ["FChar256 as fchar256",
"sum(FDouble) as sfd"]. If present, no results are returned in the
response. This option is not available if one of the grouping
attributes is an unrestricted string (i.e.; not charN) type.
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. 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
.
RESULT_TABLE_FORCE_REPLICATED
: Force the result table to be replicated
(ignores any sharding). Must be used in combination with the result_table
option.
Supported values:
The default value is FALSE
.
RESULT_TABLE_GENERATE_PK
: If 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
.
TTL
: Sets the TTL of the
table specified in result_table
.
CHUNK_SIZE
: Indicates the number of records per chunk to be used for
the result table. Must be used in combination with the result_table
option.
CREATE_INDEXES
: Comma-separated list of columns on which to create
indexes on the result table. Must be used in combination with the result_table
option.
VIEW_ID
: ID
of view of which the result table will be a member. The default value
is ''.
PIVOT
: pivot
column
PIVOT_VALUES
: The value list provided will become the column headers in
the output. Should be the values from the pivot_column.
GROUPING_SETS
: Customize the grouping attribute sets to compute the
aggregates. These sets can include ROLLUP or CUBE operartors. The
attribute sets should be enclosed in paranthesis and can include
composite attributes. All attributes specified in the grouping sets must
present in the groupby attributes.
ROLLUP
: This
option is used to specify the multilevel aggregates.
CUBE
: This
option is used to specify the multidimensional aggregates.
Map
.
A set of string constants for the parameter options
.Modifier and Type | Field and Description | ||
---|---|---|---|
static String |
ASCENDING
Indicates that the returned values should be sorted in ascending
order.
|
||
static String |
CHUNK_SIZE
Indicates the number of records per chunk to be used for the result
table.
|
||
static String |
COLLECTION_NAME
[DEPRECATED--please specify the containing schema as part of
result_table and use GPUdb.createSchema(CreateSchemaRequest) 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 |
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 |
SORT_BY
String determining how the results are sorted.
|
||
static String |
SORT_ORDER
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(CreateSchemaRequest)
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 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 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 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
Copyright © 2024. All rights reserved.