Kinetica C# API  Version 6.1.0.0
kinetica.AggregateUnpivotRequest Class Reference

A set of parameters for Kinetica.aggregateUnpivot(string,string,string,IList<string>,IDictionary<string, string>). More...

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

Classes

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

Public Member Functions

 AggregateUnpivotRequest ()
 Constructs an AggregateUnpivotRequest object with default parameters. More...
 
 AggregateUnpivotRequest (string table_name, string variable_column_name, string value_column_name, IList< string > pivoted_columns, IDictionary< string, string > options=null)
 Constructs an AggregateUnpivotRequest object with the specified parameters. More...
 
 AggregateUnpivotRequest (string table_name, string variable_column_name, string value_column_name, IList< string > pivoted_columns, string encoding=null, IDictionary< string, string > options=null)
 Constructs an AggregateUnpivotRequest 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 the table on which the operation will be performed. More...
 
string variable_column_name [get, set]
 Specifies the variable/parameter column name. More...
 
string value_column_name = "" [get, set]
 Specifies the value column name. More...
 
IList< string > pivoted_columns = "" [get, set]
 List of one or more values typically the column names of the input table. More...
 
string encoding = new List<string>() [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.aggregateUnpivot(string,string,string,IList<string>,IDictionary<string, string>).


Rotate the column values into rows values.
The aggregate unpivot is used to normalize tables that are built for cross tabular reporting purposes. The unpivot operator rotates the column values for all the pivoted columns. A variable column, value column and all columns from the source table except the unpivot columns are projected into the result table. The variable column and value columns in the result table indicate the pivoted column name and values respectively.
The response is returned as a dynamic schema. For details see: dynamic schemas documentation.

Definition at line 31 of file AggregateUnpivot.cs.

Constructor & Destructor Documentation

◆ AggregateUnpivotRequest() [1/3]

kinetica.AggregateUnpivotRequest.AggregateUnpivotRequest ( )
inline

Constructs an AggregateUnpivotRequest object with default parameters.

Definition at line 326 of file AggregateUnpivot.cs.

◆ AggregateUnpivotRequest() [2/3]

kinetica.AggregateUnpivotRequest.AggregateUnpivotRequest ( string  table_name,
string  variable_column_name,
string  value_column_name,
IList< string >  pivoted_columns,
IDictionary< string, string >  options = null 
)
inline

Constructs an AggregateUnpivotRequest object with the specified parameters.

Parameters
table_nameName of the table on which the operation will be performed. Must be an existing table/view.
variable_column_nameSpecifies the variable/parameter column name.
value_column_nameSpecifies the value column name.
pivoted_columnsList of one or more values typically the column names of the input table. All the columns in the source table must have the same data type.
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.
  • RESULT_TABLE: The name of the table used to store the results. Has the same naming restrictions as tables. If present, no results are returned in the response.
  • 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.
  • EXPRESSION: Filter expression to apply to the table prior to unpivot processing.
  • ORDER_BY: Comma-separated list of the columns to be sorted by; e.g. 'timestamp asc, x desc'. The columns specified must be present in input table. If any alias is given for any column name, the alias must be used, rather than the original column name.
  • CHUNK_SIZE: Indicates the chunk size to be used for the result table. Must be used in combination with the result_table option.
  • LIMIT: The number of records to keep.
  • TTL: Sets the TTL of the table specified in result_table.

Definition at line 417 of file AggregateUnpivot.cs.

◆ AggregateUnpivotRequest() [3/3]

kinetica.AggregateUnpivotRequest.AggregateUnpivotRequest ( string  table_name,
string  variable_column_name,
string  value_column_name,
IList< string >  pivoted_columns,
string  encoding = null,
IDictionary< string, string >  options = null 
)
inline

Constructs an AggregateUnpivotRequest object with the specified parameters.

Parameters
table_nameName of the table on which the operation will be performed. Must be an existing table/view.
variable_column_nameSpecifies the variable/parameter column name.
value_column_nameSpecifies the value column name.
pivoted_columnsList of one or more values typically the column names of the input table. All the columns in the source table must have the same data type.
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.
  • RESULT_TABLE: The name of the table used to store the results. Has the same naming restrictions as tables. If present, no results are returned in the response.
  • 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.
  • EXPRESSION: Filter expression to apply to the table prior to unpivot processing.
  • ORDER_BY: Comma-separated list of the columns to be sorted by; e.g. 'timestamp asc, x desc'. The columns specified must be present in input table. If any alias is given for any column name, the alias must be used, rather than the original column name.
  • CHUNK_SIZE: Indicates the chunk size to be used for the result table. Must be used in combination with the result_table option.
  • LIMIT: The number of records to keep.
  • TTL: Sets the TTL of the table specified in result_table.

Definition at line 540 of file AggregateUnpivot.cs.

Property Documentation

◆ encoding

string kinetica.AggregateUnpivotRequest.encoding = new List<string>()
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 243 of file AggregateUnpivot.cs.

◆ options

IDictionary<string, string> kinetica.AggregateUnpivotRequest.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.
  • RESULT_TABLE: The name of the table used to store the results. Has the same naming restrictions as tables. If present, no results are returned in the response.
  • 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.
  • EXPRESSION: Filter expression to apply to the table prior to unpivot processing.
  • ORDER_BY: Comma-separated list of the columns to be sorted by; e.g. 'timestamp asc, x desc'. The columns specified must be present in input table. If any alias is given for any column name, the alias must be used, rather than the original column name.
  • CHUNK_SIZE: Indicates the chunk size to be used for the result table. Must be used in combination with the result_table option.
  • LIMIT: The number of records to keep.
  • TTL: Sets the TTL of the table specified in result_table.

Definition at line 321 of file AggregateUnpivot.cs.

◆ pivoted_columns

IList<string> kinetica.AggregateUnpivotRequest.pivoted_columns = ""
getset

List of one or more values typically the column names of the input table.

All the columns in the source table must have the same data type.

Definition at line 222 of file AggregateUnpivot.cs.

◆ table_name

string kinetica.AggregateUnpivotRequest.table_name
getset

Name of the table on which the operation will be performed.

Must be an existing table/view.

Definition at line 211 of file AggregateUnpivot.cs.

◆ value_column_name

string kinetica.AggregateUnpivotRequest.value_column_name = ""
getset

Specifies the value column name.

Definition at line 217 of file AggregateUnpivot.cs.

◆ variable_column_name

string kinetica.AggregateUnpivotRequest.variable_column_name
getset

Specifies the variable/parameter column name.

Definition at line 214 of file AggregateUnpivot.cs.


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