Kinetica C# API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
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 
10 
11 namespace kinetica
12 {
13 
27  {
28 
64  public struct LockType
65  {
66 
68  public const string STATUS = "status";
69 
71  public const string NO_ACCESS = "no_access";
72 
74  public const string READ_ONLY = "read_only";
75 
77  public const string WRITE_ONLY = "write_only";
78 
80  public const string READ_WRITE = "read_write";
81  } // end struct LockType
82 
83 
89  public string table_name { get; set; }
90 
124  public string lock_type { get; set; } = LockType.STATUS;
125 
128  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
129 
130 
133  public LockTableRequest() { }
134 
179  public LockTableRequest( string table_name,
180  string lock_type = null,
181  IDictionary<string, string> options = null)
182  {
183  this.table_name = table_name ?? "";
184  this.lock_type = lock_type ?? LockType.STATUS;
185  this.options = options ?? new Dictionary<string, string>();
186  } // end constructor
187 
188  } // end class LockTableRequest
189 
190 
191 
196  {
197 
199  public string lock_type { get; set; }
200 
202  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
203 
204  } // end class LockTableResponse
205 
206 
207 
208 
209 } // end namespace kinetica
IDictionary< string, string > info
Additional information.
Definition: LockTable.cs:202
string lock_type
The type of lock being applied to the table.
Definition: LockTable.cs:124
A set of parameters for Kinetica.lockTable(string,string,IDictionary{string, string}).
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:179
const string WRITE_ONLY
Allow only write operations
Definition: LockTable.cs:77
const string READ_ONLY
Allow only read operations
Definition: LockTable.cs:74
string table_name
Name of the table to be locked, in [schema_name.
Definition: LockTable.cs:89
string lock_type
Returns the lock state of the table.
Definition: LockTable.cs:199
const string NO_ACCESS
Allow no read/write operations
Definition: LockTable.cs:71
const string READ_WRITE
Allow all read/write operations
Definition: LockTable.cs:80
LockTableRequest()
Constructs a LockTableRequest object with default parameters.
Definition: LockTable.cs:133
The type of lock being applied to the table.
Definition: LockTable.cs:64
IDictionary< string, string > options
Optional parameters.
Definition: LockTable.cs:128
const string STATUS
Show locked status
Definition: LockTable.cs:68
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14
A set of results returned by Kinetica.lockTable(string,string,IDictionary{string, string})...
Definition: LockTable.cs:195