Kinetica   C#   API  Version 7.2.3.0
LockTable.cs
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 
7 using System.Collections.Generic;
8 
9 namespace kinetica
10 {
27  {
34  public struct LockType
35  {
37  public const string STATUS = "status";
38 
40  public const string NO_ACCESS = "no_access";
41 
43  public const string READ_ONLY = "read_only";
44 
46  public const string WRITE_ONLY = "write_only";
47 
49  public const string READ_WRITE = "read_write";
50  } // end struct LockType
51 
58  public string table_name { get; set; }
59 
90  public string lock_type { get; set; } = LockType.STATUS;
91 
95  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
96 
99  public LockTableRequest() { }
100 
143  public LockTableRequest( string table_name,
144  string lock_type = null,
145  IDictionary<string, string> options = null)
146  {
147  this.table_name = table_name ?? "";
149  this.options = options ?? new Dictionary<string, string>();
150  } // end constructor
151  } // end class LockTableRequest
152 
157  {
159  public string lock_type { get; set; }
160 
162  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
163  } // end class LockTableResponse
164 } // end namespace kinetica
IDictionary< string, string > info
Additional information.
Definition: LockTable.cs:162
string lock_type
The type of lock being applied to the table.
Definition: LockTable.cs:90
A set of parameters for Kinetica.lockTable.
Definition: LockTable.cs:26
LockTableRequest(string table_name, string lock_type=null, IDictionary< string, string > options=null)
Constructs a LockTableRequest object with the specified parameters.
Definition: LockTable.cs:143
const string WRITE_ONLY
Allow only write operations
Definition: LockTable.cs:46
const string READ_ONLY
Allow only read operations
Definition: LockTable.cs:43
string table_name
Name of the table to be locked, in [schema_name.
Definition: LockTable.cs:58
string lock_type
Returns the lock state of the table.
Definition: LockTable.cs:159
const string NO_ACCESS
Allow no read/write operations
Definition: LockTable.cs:40
const string READ_WRITE
Allow all read/write operations
Definition: LockTable.cs:49
LockTableRequest()
Constructs a LockTableRequest object with default parameters.
Definition: LockTable.cs:99
A set of string constants for the parameter lock_type.
Definition: LockTable.cs:34
IDictionary< string, string > options
Optional parameters.
Definition: LockTable.cs:95
const string STATUS
Show locked status
Definition: LockTable.cs:37
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14
A set of results returned by Kinetica.lockTable.
Definition: LockTable.cs:156