7 using System.Collections.Generic;
37 public class ExecuteSqlRequest : KineticaData
43 public struct Encoding
45 public const string BINARY =
"binary";
46 public const string JSON =
"json";
69 public const string TRUE =
"true";
70 public const string FALSE =
"false";
207 public const string PLAN_CACHE =
"plan_cache";
295 public const string TTL =
"ttl";
352 public long offset {
get;
set; } = 0;
367 public long limit {
get;
set; } = -9999;
382 public string encoding {
get;
set; } = Encoding.BINARY;
394 public IList<byte[]>
data {
get;
set; } =
new List<byte[]>();
767 public IDictionary<string, string>
options {
get;
set; } =
new Dictionary<string, string>();
1175 IList<
byte[]>
data =
null,
1176 IDictionary<string, string>
options =
null)
1183 this.
data =
data ??
new List<byte[]>();
1603 IList<
byte[]>
data =
null,
1604 IDictionary<string, string>
options =
null)
1611 this.
data =
data ??
new List<byte[]>();
1619 public class RawExecuteSqlResponse : KineticaData
1625 public struct HasMoreRecords
1627 public const string TRUE =
"true";
1628 public const string FALSE =
"false";
1638 public const string COUNT =
"count";
1703 public IDictionary<string, string>
info {
get;
set; } =
new Dictionary<string, string>();
1709 public class ExecuteSqlResponse : KineticaData
1715 public struct HasMoreRecords
1717 public const string TRUE =
"true";
1718 public const string FALSE =
"false";
1728 public const string COUNT =
"count";
1742 public IList<KineticaRecord>
data {
get;
set; } =
new List<KineticaRecord>();
1786 public IDictionary<string, string>
info {
get;
set; } =
new Dictionary<string, string>();
const string RESULT_TABLE_LIST
List of tables, comma-separated, in addition to the paging_table, created as result of the query.
ExecuteSqlRequest(string statement, long? offset=null, long? limit=null, string encoding=null, string request_schema_str=null, IList< byte[]> data=null, IDictionary< string, string > options=null)
Constructs an ExecuteSqlRequest object with the specified parameters.
IDictionary< string, string > info
Additional information.
const string PAGING_TABLE
When empty or the specified paging table not exists, the system will create a paging table and return...
ExecuteSqlRequest()
Constructs an ExecuteSqlRequest object with default parameters.
const string VALIDATE_CHANGE_COLUMN
When changing a column using alter table, validate the change before applying it.
long offset
A positive integer indicating the number of initial results to skip (this can be useful for paging th...
string request_schema_str
Avro schema of data.
IList< byte[]> data
An array of binary-encoded data for the records to be binded to the SQL query.
A set of string constants for the parameter encoding.
string json_encoded_response
Avro JSON encoded response.
long total_number_of_records
Total/Filtered number of records.
string paging_table
Name of the table that has the result records of the query.
IList< KineticaRecord > data
Avro binary encoded response.
bool has_more_records
Too many records.
const string QUERY_PARAMETERS
Query parameters in JSON array or arrays (for inserting multiple rows).
const string PLAN_CACHE
If FALSE, disables plan caching for the given query.
IDictionary< string, string > options
Optional parameters.
const string COUNT
Number of records in the final table
const string PAGING_TABLE_TTL
Sets the TTL of the paging table.
const string DISTRIBUTED_JOINS
If TRUE, enables the use of distributed joins in servicing the given query.
byte [] binary_encoded_response
Avro binary encoded response.
const string TTL
Sets the TTL of the intermediate result tables used in query execution.
long total_number_of_records
Total/Filtered number of records.
const string LATE_MATERIALIZATION
If TRUE, Joins/Filters results will always be materialized ( saved to result tables format).
const string RESULTS_CACHING
If FALSE, disables caching of the results of the given query.
const string DISTRIBUTED_OPERATIONS
If TRUE, enables the use of distributed operations in servicing the given query.
const string RULE_BASED_OPTIMIZATION
If FALSE, disables rule-based rewrite optimizations for the given query.
string response_schema_str
Avro schema of binary_encoded_response or json_encoded_response.
const string UPDATE_ON_EXISTING_PK
Specifies the record collision policy for inserting into or updating a table with a primary key.
string paging_table
Name of the table that has the result records of the query.
const string COUNT
Number of records in the final table
long count_affected
The number of objects/records affected.
string encoding
Specifies the encoding for returned records; either 'binary' or 'json'.
IDictionary< string, string > info
Additional information.
const string PRESERVE_DICT_ENCODING
If TRUE, then columns that were dict encoded in the source table will be dict encoded in the projecti...
const string COST_BASED_OPTIMIZATION
If FALSE, disables the cost-based optimization of the given query.
string statement
SQL statement (query, DML, or DDL) to be executed
const string IGNORE_EXISTING_PK
Specifies the record collision error-suppression policy for inserting into or updating a table with a...
bool has_more_records
Too many records.
const string PARALLEL_EXECUTION
If FALSE, disables the parallel step execution of the given query.
ExecuteSqlRequest(string statement, long? offset=null, long? limit=null, string request_schema_str=null, IList< byte[]> data=null, IDictionary< string, string > options=null)
Constructs an ExecuteSqlRequest object with the specified parameters.
const string CURRENT_SCHEMA
Use the supplied value as the default schema when processing this SQL command.
const string RESULT_TABLE_LIST
List of tables, comma-separated, in addition to the paging_table, created as result of the query.
const string SSQ_OPTIMIZATION
If FALSE, scalar subqueries will be translated into joins.
long count_affected
The number of objects/records affected.
const string PREPARE_MODE
If TRUE, compiles a query into an execution plan and saves it in query cache.
long limit
A positive integer indicating the maximum number of results to be returned, or END_OF_SET (-9999) to ...