Kinetica C# API
Version 6.1.0.0
|
A set of parameters for Kinetica.aggregateGroupBy(string,IList<string>,long,long,IDictionary<string, string>). More...
Classes | |
struct | Encoding |
Specifies the encoding for returned records. More... | |
struct | Options |
Optional parameters. More... | |
Public Member Functions | |
AggregateGroupByRequest () | |
Constructs an AggregateGroupByRequest object with default parameters. More... | |
AggregateGroupByRequest (string table_name, IList< string > column_names, long offset, long limit=1000, IDictionary< string, string > options=null) | |
Constructs an AggregateGroupByRequest object with the specified parameters. More... | |
AggregateGroupByRequest (string table_name, IList< string > column_names, long offset, long limit=1000, string encoding=null, IDictionary< string, string > options=null) | |
Constructs an AggregateGroupByRequest object with the specified parameters. More... | |
![]() | |
KineticaData (KineticaType type) | |
Constructor from Kinetica Type More... | |
KineticaData (System.Type type=null) | |
Default constructor, with optional System.Type More... | |
object | Get (int fieldPos) |
Retrieve a specific property from this object More... | |
void | Put (int fieldPos, object fieldValue) |
Write a specific property to this object More... | |
Properties | |
string | table_name [get, set] |
Name of the table on which the operation will be performed. More... | |
IList< string > | column_names [get, set] |
List of one or more column names, expressions, and aggregate expressions. More... | |
long | offset = new List<string>() [get, set] |
A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). More... | |
long | limit [get, set] |
A positive integer indicating the maximum number of results to be returned Or END_OF_SET (-9999) to indicate that the max number of results should be returned. More... | |
string | encoding = 1000 [get, set] |
Specifies the encoding for returned records. More... | |
IDictionary< string, string > | options = Encoding.BINARY [get, set] |
Optional parameters. More... | |
![]() | |
Schema | Schema [get] |
Avro Schema for this class More... | |
Additional Inherited Members | |
![]() | |
static RecordSchema | SchemaFromType (System.Type t, KineticaType ktype=null) |
Create an Avro Schema from a System.Type and a KineticaType. More... | |
A set of parameters for Kinetica.aggregateGroupBy(string,IList<string>,long,long,IDictionary<string, string>).
Calculates unique combinations (groups) of values for the given columns in a given table/view/collection and computes aggregates on each unique combination. This is somewhat analogous to an SQL-style SELECT...GROUP BY.
Any column(s) can be grouped on, and all column types except unrestricted-length strings may be used for computing applicable aggregates; columns marked as store-only are unable to be used in grouping or aggregation.
The results can be paged via the offset and limit parameters. For example, to get 10 groups with the largest counts the inputs would be: limit=10, options={"sort_order":"descending", "sort_by":"value"}.
options can be used to customize behavior of this call e.g. filtering or sorting the results.
To group by columns 'x' and 'y' and compute the number of objects within each group, use: column_names=['x','y','count(*)'].
To also compute the sum of 'z' over each group, use: column_names=['x','y','count(*)','sum(z)'].
Available aggregation functions are: count(*), sum, min, max, avg, mean, stddev, stddev_pop, stddev_samp, var, var_pop, var_samp, arg_min, arg_max and count_distinct.
The response is returned as a dynamic schema. For details see: dynamic schemas documentation.
If a result_table name is specified in the options, the results are stored in a new table with that name–no results are returned in the response. Both the table name and resulting column names must adhere to standard naming conventions; column/aggregation expressions will need to be aliased. If the source table's shard key is used as the grouping column(s), the result table will be sharded, in all other cases it will be replicated. Sorting will properly function only if the result table is replicated or if there is only one processing node and should not be relied upon in other cases. Not available when any of the values of column_names is an unrestricted-length string.
Definition at line 68 of file AggregateGroupBy.cs.
|
inline |
Constructs an AggregateGroupByRequest object with default parameters.
Definition at line 632 of file AggregateGroupBy.cs.
|
inline |
Constructs an AggregateGroupByRequest object with the specified parameters.
table_name | Name of the table on which the operation will be performed. Must be an existing table/view/collection. |
column_names | List of one or more column names, expressions, and aggregate expressions. |
offset | A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The minimum allowed value is 0. The maximum allowed value is MAX_INT. |
limit | A positive integer indicating the maximum number of results to be returned Or END_OF_SET (-9999) to indicate that the max number of results should be returned. |
options | Optional parameters.
|
Definition at line 810 of file AggregateGroupBy.cs.
|
inline |
Constructs an AggregateGroupByRequest object with the specified parameters.
table_name | Name of the table on which the operation will be performed. Must be an existing table/view/collection. |
column_names | List of one or more column names, expressions, and aggregate expressions. |
offset | A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The minimum allowed value is 0. The maximum allowed value is MAX_INT. |
limit | A positive integer indicating the maximum number of results to be returned Or END_OF_SET (-9999) to indicate that the max number of results should be returned. |
encoding | Specifies the encoding for returned records. Supported values:
|
options | Optional parameters.
|
Definition at line 1020 of file AggregateGroupBy.cs.
|
getset |
List of one or more column names, expressions, and aggregate expressions.
Definition at line 433 of file AggregateGroupBy.cs.
|
getset |
Specifies the encoding for returned records.
Supported values:
The default value is BINARY.
Definition at line 465 of file AggregateGroupBy.cs.
|
getset |
A positive integer indicating the maximum number of results to be returned Or END_OF_SET (-9999) to indicate that the max number of results should be returned.
Definition at line 444 of file AggregateGroupBy.cs.
|
getset |
A positive integer indicating the number of initial results to skip (this can be useful for paging through the results).
The minimum allowed value is 0. The maximum allowed value is MAX_INT.
Definition at line 439 of file AggregateGroupBy.cs.
|
getset |
Optional parameters.
Definition at line 627 of file AggregateGroupBy.cs.
|
getset |
Name of the table on which the operation will be performed.
Must be an existing table/view/collection.
Definition at line 429 of file AggregateGroupBy.cs.