Package com.gpudb.protocol
Class AggregateGroupByRequest.Options
- java.lang.Object
-
- com.gpudb.protocol.AggregateGroupByRequest.Options
-
- Enclosing class:
- AggregateGroupByRequest
public static final class AggregateGroupByRequest.Options extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringASCENDINGIndicates that the returned values should be sorted in ascending order.static StringCHUNK_COLUMN_MAX_MEMORYIndicates the target maximum data size for each column in a chunk to be used for the result table.static StringCHUNK_MAX_MEMORYIndicates the target maximum data size for all columns in a chunk to be used for the result table.static StringCHUNK_SIZEIndicates the number of records per chunk to be used for the result table.static StringCOLLECTION_NAME[DEPRECATED--please specify the containing schema as part ofRESULT_TABLEand useGPUdb.createSchemato create the schema if non-existent] Name of a schema which is to contain the table specified inRESULT_TABLE.static StringCOMPRESSION_CODECThe default compression codec for the result table's columns.static StringCREATE_INDEXESComma-separated list of columns on which to create indexes on the result table.static StringCREATE_TEMP_TABLEIfTRUE, a unique temporary table name will be generated in the sys_temp schema and used in place ofRESULT_TABLE.static StringCUBEThis option is used to specify the multidimensional aggregates.static StringDESCENDINGIndicates that the returned values should be sorted in descending order.static StringEXPRESSIONFilter expression to apply to the table prior to computing the aggregate group by.static StringFALSEstatic StringGROUPING_SETSCustomize the grouping attribute sets to compute the aggregates.static StringHAVINGFilter expression to apply to the aggregated results.static StringKEYIndicates that the returned values should be sorted by key, which corresponds to the grouping columns.static StringORDER_BYComma-separated list of the columns to be sorted by as well as the sort direction, e.g., 'timestamp asc, x desc'.static StringPIPELINED_EXPRESSION_EVALUATIONevaluate the group-by during last JoinedSet filter plan step.static StringPIVOTpivot columnstatic StringPIVOT_VALUESThe value list provided will become the column headers in the output.static StringRESULT_TABLEThe 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.static StringRESULT_TABLE_FORCE_REPLICATEDForce the result table to be replicated (ignores any sharding).static StringRESULT_TABLE_GENERATE_PKIfTRUEthen set a primary key for the result table.static StringRESULT_TABLE_GENERATE_SOFT_PKIfTRUEthen set a soft primary key for the result table.static StringRESULT_TABLE_PERSISTIfTRUE, then the result table specified inRESULT_TABLEwill be persisted and will not expire unless aTTLis specified.static StringROLLUPThis option is used to specify the multilevel aggregates.static StringSHARD_KEYComma-separated list of the columns to be sharded on; e.g. 'column1, column2'.static StringSORT_BY[DEPRECATED--use order_by instead] String determining how the results are sorted.static StringSORT_ORDER[DEPRECATED--use order_by instead] String indicating how the returned values should be sorted - ascending or descending.static StringSTRATEGY_DEFINITIONThe tier strategy for the table and its columns.static StringTRUEstatic StringTTLSets the TTL of the table specified inRESULT_TABLE.static StringVALUEIndicates that the returned values should be sorted by value, which corresponds to the aggregates.static StringVIEW_IDID of view of which the result table will be a member.
-
-
-
Field Detail
-
CREATE_TEMP_TABLE
public static final String CREATE_TEMP_TABLE
IfTRUE, a unique temporary table name will be generated in the sys_temp schema and used in place ofRESULT_TABLE. IfRESULT_TABLE_PERSISTisFALSE(or unspecified), then this is always allowed even if the caller does not have permission to create tables. The generated name is returned inQUALIFIED_RESULT_TABLE_NAME. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
TRUE
public static final String TRUE
- See Also:
- Constant Field Values
-
FALSE
public static final String FALSE
- See Also:
- Constant Field Values
-
COLLECTION_NAME
public static final String COLLECTION_NAME
[DEPRECATED--please specify the containing schema as part ofRESULT_TABLEand useGPUdb.createSchemato create the schema if non-existent] Name of a schema which is to contain the table specified inRESULT_TABLE. If the schema provided is non-existent, it will be automatically created.- See Also:
- Constant Field Values
-
EXPRESSION
public static final String EXPRESSION
Filter expression to apply to the table prior to computing the aggregate group by.- See Also:
- Constant Field Values
-
PIPELINED_EXPRESSION_EVALUATION
public static final String PIPELINED_EXPRESSION_EVALUATION
evaluate the group-by during last JoinedSet filter plan step. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
HAVING
public static final String HAVING
Filter expression to apply to the aggregated results.- See Also:
- Constant Field Values
-
SORT_ORDER
public static final String SORT_ORDER
[DEPRECATED--use order_by instead] 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.- See Also:
- Constant Field Values
-
ASCENDING
public static final String ASCENDING
Indicates that the returned values should be sorted in ascending order.- See Also:
- Constant Field Values
-
DESCENDING
public static final String DESCENDING
Indicates that the returned values should be sorted in descending order.- See Also:
- Constant Field Values
-
SORT_BY
public static final String SORT_BY
[DEPRECATED--use order_by instead] 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.- See Also:
- Constant Field Values
-
KEY
public static final String 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.- See Also:
- Constant Field Values
-
VALUE
public static final String 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.- See Also:
- Constant Field Values
-
ORDER_BY
public static final 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'. The default value is ''.- See Also:
- Constant Field Values
-
STRATEGY_DEFINITION
public static final String STRATEGY_DEFINITION
The tier strategy for the table and its columns.- See Also:
- Constant Field Values
-
COMPRESSION_CODEC
public static final String COMPRESSION_CODEC
The default compression codec for the result table's columns.- See Also:
- Constant Field Values
-
RESULT_TABLE
public static final String 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.- See Also:
- Constant Field Values
-
RESULT_TABLE_PERSIST
public static final String RESULT_TABLE_PERSIST
IfTRUE, then the result table specified inRESULT_TABLEwill be persisted and will not expire unless aTTLis specified. IfFALSE, then the result table will be an in-memory table and will expire unless aTTLis specified otherwise. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
RESULT_TABLE_FORCE_REPLICATED
public static final String RESULT_TABLE_FORCE_REPLICATED
Force the result table to be replicated (ignores any sharding). Must be used in combination with theRESULT_TABLEoption. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
RESULT_TABLE_GENERATE_PK
public static final String RESULT_TABLE_GENERATE_PK
IfTRUEthen set a primary key for the result table. Must be used in combination with theRESULT_TABLEoption. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
RESULT_TABLE_GENERATE_SOFT_PK
public static final String RESULT_TABLE_GENERATE_SOFT_PK
IfTRUEthen set a soft primary key for the result table. Must be used in combination with theRESULT_TABLEoption. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
TTL
public static final String TTL
Sets the TTL of the table specified inRESULT_TABLE.- See Also:
- Constant Field Values
-
CHUNK_SIZE
public static final String CHUNK_SIZE
Indicates the number of records per chunk to be used for the result table. Must be used in combination with theRESULT_TABLEoption.- See Also:
- Constant Field Values
-
CHUNK_COLUMN_MAX_MEMORY
public static final String CHUNK_COLUMN_MAX_MEMORY
Indicates the target maximum data size for each column in a chunk to be used for the result table. Must be used in combination with theRESULT_TABLEoption.- See Also:
- Constant Field Values
-
CHUNK_MAX_MEMORY
public static final String CHUNK_MAX_MEMORY
Indicates the target maximum data size for all columns in a chunk to be used for the result table. Must be used in combination with theRESULT_TABLEoption.- See Also:
- Constant Field Values
-
CREATE_INDEXES
public static final String CREATE_INDEXES
Comma-separated list of columns on which to create indexes on the result table. Must be used in combination with theRESULT_TABLEoption.- See Also:
- Constant Field Values
-
VIEW_ID
public static final String VIEW_ID
ID of view of which the result table will be a member. The default value is ''.- See Also:
- Constant Field Values
-
PIVOT
public static final String PIVOT
pivot column- See Also:
- Constant Field Values
-
PIVOT_VALUES
public static final String PIVOT_VALUES
The value list provided will become the column headers in the output. Should be the values from the pivot_column.- See Also:
- Constant Field Values
-
GROUPING_SETS
public static final String GROUPING_SETS
Customize the grouping attribute sets to compute the aggregates. These sets can include ROLLUP or CUBE operators. The attribute sets should be enclosed in parentheses and can include composite attributes. All attributes specified in the grouping sets must present in the group-by attributes.- See Also:
- Constant Field Values
-
ROLLUP
public static final String ROLLUP
This option is used to specify the multilevel aggregates.- See Also:
- Constant Field Values
-
CUBE
public static final String CUBE
This option is used to specify the multidimensional aggregates.- See Also:
- Constant Field Values
-
SHARD_KEY
public static final String SHARD_KEY
Comma-separated list of the columns to be sharded on; e.g. 'column1, column2'. The columns specified must be present incolumnNames. If any alias is given for any column name, the alias must be used, rather than the original column name. The default value is ''.- See Also:
- Constant Field Values
-
-