public static final class AggregateGroupByRequest.Options extends Object
COLLECTION_NAME
: Name of a collection which is to contain the table
specified in result_table
. If the collection provided is
non-existent, the collection will be automatically created. If empty,
then the table will be a top-level table. Additionally this option is
invalid if tableName
is a collection.
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
.
RESULT_TABLE
: The name of the table used to store the results. Has the
same naming restrictions as tables.
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.
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.
TTL
: Sets the TTL of the
table specified in result_table
.
CHUNK_SIZE
: Indicates the chunk size to be used for the result table.
Must be used in combination with the result_table
option.
MATERIALIZE_ON_GPU
: If true
then the columns of the groupby
result table will be cached on the GPU. Must be used in combination with
the result_table
option.
Supported values:
The default value is FALSE
.
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 chunk size to be used for the result table.
|
static String |
COLLECTION_NAME
Name of a collection which is to contain the table specified in
result_table . |
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 |
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 |
MATERIALIZE_ON_GPU
If
true then the columns of the groupby result table will be
cached on the GPU. |
static String |
RESULT_TABLE
The name of the table used to store the results.
|
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 |
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 |
TRUE |
static String |
TTL
Sets the TTL of the table specified in
result_table . |
static String |
VALUE
Indicates that the returned values should be sorted by value, which
corresponds to the aggregates.
|
public static final String COLLECTION_NAME
result_table
. If the collection provided is non-existent,
the collection will be automatically created. If empty, then the
table will be a top-level table. Additionally this option is
invalid if tableName
is a collection.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 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 TRUE
public static final String FALSE
public static final String RESULT_TABLE_FORCE_REPLICATED
result_table
option.public static final String RESULT_TABLE_GENERATE_PK
result_table
option.public static final String TTL
result_table
.public static final String CHUNK_SIZE
result_table
option.public static final String MATERIALIZE_ON_GPU
true
then the columns of the groupby result table will be
cached on the GPU. Must be used in combination with the result_table
option.
Supported values:
The default value is FALSE
.Copyright © 2018. All rights reserved.