Kinetica C# API  Version 6.2.0.1
kinetica.AggregateUniqueRequest Class Reference

A set of parameters for Kinetica.aggregateUnique(string,string,long,long,IDictionary<string, string>). More...

+ Inheritance diagram for kinetica.AggregateUniqueRequest:
+ Collaboration diagram for kinetica.AggregateUniqueRequest:

Classes

struct  Encoding
 Specifies the encoding for returned records. More...
 
struct  Options
 Optional parameters. More...
 

Public Member Functions

 AggregateUniqueRequest ()
 Constructs an AggregateUniqueRequest object with default parameters. More...
 
 AggregateUniqueRequest (string table_name, string column_name, long offset, long? limit=null, IDictionary< string, string > options=null)
 Constructs an AggregateUniqueRequest object with the specified parameters. More...
 
 AggregateUniqueRequest (string table_name, string column_name, long offset, long? limit=null, string encoding=null, IDictionary< string, string > options=null)
 Constructs an AggregateUniqueRequest object with the specified parameters. More...
 
- Public Member Functions inherited from kinetica.KineticaData
 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 an existing table/collection on which the operation will be performed. More...
 
string column_name [get, set]
 Name of the column or an expression containing one or more column names on which the unique function would be applied. More...
 
long offset [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. More...
 
string encoding = 10000 [get, set]
 Specifies the encoding for returned records. More...
 
IDictionary< string, string > options = Encoding.BINARY [get, set]
 Optional parameters. More...
 
- Properties inherited from kinetica.KineticaData
Schema Schema [get]
 Avro Schema for this class More...
 

Additional Inherited Members

- Static Public Member Functions inherited from kinetica.KineticaData
static RecordSchema SchemaFromType (System.Type t, KineticaType ktype=null)
 Create an Avro Schema from a System.Type and a KineticaType. More...
 

Detailed Description

A set of parameters for Kinetica.aggregateUnique(string,string,long,long,IDictionary<string, string>).


Returns all the unique values from a particular column (specified by column_name) of a particular table or collection (specified by table_name). If column_name is a numeric column the values will be in <member name="binary_encoded_response">. Otherwise if column_name is a string column the values will be in <member name="json_encoded_response">. The results can be paged via the offset and limit parameters.
Columns marked as store-only are unable to be used with this function.
To get the first 10 unique values sorted in descending order options would be::
{"limit":"10","sort_order":"descending"}.
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 name must adhere to standard naming conventions; any column expression will need to be aliased. If the source table's shard key is used as the column_name, 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 if table_name is a collection or when the value of column_name is an unrestricted-length string.

Definition at line 53 of file AggregateUnique.cs.

Constructor & Destructor Documentation

◆ AggregateUniqueRequest() [1/3]

kinetica.AggregateUniqueRequest.AggregateUniqueRequest ( )
inline

Constructs an AggregateUniqueRequest object with default parameters.

Definition at line 523 of file AggregateUnique.cs.

◆ AggregateUniqueRequest() [2/3]

kinetica.AggregateUniqueRequest.AggregateUniqueRequest ( string  table_name,
string  column_name,
long  offset,
long?  limit = null,
IDictionary< string, string >  options = null 
)
inline

Constructs an AggregateUniqueRequest object with the specified parameters.

Parameters
table_nameName of an existing table/collection on which the operation will be performed.
column_nameName of the column or an expression containing one or more column names on which the unique function would be applied.
offsetA 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.
limitA 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. The default value is 10000.
optionsOptional parameters.
  • 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 is a collection.
  • EXPRESSION: Optional filter expression to apply to the table.
  • SORT_ORDER: String indicating how the returned values should be sorted. Supported values: The default value is ASCENDING.
  • RESULT_TABLE: The name of the table used to store the results. If present, no results are returned in the response. Has the same naming restrictions as tables. Not available if is a collection or when is an unrestricted-length 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. 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 chunk size to be used for the result table. Must be used in combination with the result_table option.
  • VIEW_ID: view this result table is part of. The default value is ''.
The default value is an empty Dictionary.

Definition at line 676 of file AggregateUnique.cs.

◆ AggregateUniqueRequest() [3/3]

kinetica.AggregateUniqueRequest.AggregateUniqueRequest ( string  table_name,
string  column_name,
long  offset,
long?  limit = null,
string  encoding = null,
IDictionary< string, string >  options = null 
)
inline

Constructs an AggregateUniqueRequest object with the specified parameters.

Parameters
table_nameName of an existing table/collection on which the operation will be performed.
column_nameName of the column or an expression containing one or more column names on which the unique function would be applied.
offsetA 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.
limitA 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. The default value is 10000.
encodingSpecifies the encoding for returned records. Supported values:
  • BINARY: Indicates that the returned records should be binary encoded.
  • JSON: Indicates that the returned records should be json encoded.
The default value is BINARY.
optionsOptional parameters.
  • 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 is a collection.
  • EXPRESSION: Optional filter expression to apply to the table.
  • SORT_ORDER: String indicating how the returned values should be sorted. Supported values: The default value is ASCENDING.
  • RESULT_TABLE: The name of the table used to store the results. If present, no results are returned in the response. Has the same naming restrictions as tables. Not available if is a collection or when is an unrestricted-length 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. 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 chunk size to be used for the result table. Must be used in combination with the result_table option.
  • VIEW_ID: view this result table is part of. The default value is ''.
The default value is an empty Dictionary.

Definition at line 861 of file AggregateUnique.cs.

Property Documentation

◆ column_name

string kinetica.AggregateUniqueRequest.column_name
getset

Name of the column or an expression containing one or more column names on which the unique function would be applied.

Definition at line 349 of file AggregateUnique.cs.

◆ encoding

string kinetica.AggregateUniqueRequest.encoding = 10000
getset

Specifies the encoding for returned records.

Supported values:

  • BINARY: Indicates that the returned records should be binary encoded.
  • JSON: Indicates that the returned records should be json encoded.

The default value is BINARY.

Definition at line 382 of file AggregateUnique.cs.

◆ limit

long kinetica.AggregateUniqueRequest.limit
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. The default value is 10000.

Definition at line 361 of file AggregateUnique.cs.

◆ offset

long kinetica.AggregateUniqueRequest.offset
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 355 of file AggregateUnique.cs.

◆ options

IDictionary<string, string> kinetica.AggregateUniqueRequest.options = Encoding.BINARY
getset

Optional parameters.

  • 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 is a collection.
  • EXPRESSION: Optional filter expression to apply to the table.
  • SORT_ORDER: String indicating how the returned values should be sorted. Supported values: The default value is ASCENDING.
  • RESULT_TABLE: The name of the table used to store the results. If present, no results are returned in the response. Has the same naming restrictions as tables. Not available if is a collection or when is an unrestricted-length 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. 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 chunk size to be used for the result table. Must be used in combination with the result_table option.
  • VIEW_ID: view this result table is part of. The default value is ''.

The default value is an empty Dictionary.

Definition at line 518 of file AggregateUnique.cs.

◆ table_name

string kinetica.AggregateUniqueRequest.table_name
getset

Name of an existing table/collection on which the operation will be performed.

Definition at line 344 of file AggregateUnique.cs.


The documentation for this class was generated from the following file: