Kinetica   C#   API  Version 7.2.3.1
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 {
33  public struct LockType
34  {
36  public const string STATUS = "status";
37 
39  public const string NO_ACCESS = "no_access";
40 
42  public const string READ_ONLY = "read_only";
43 
45  public const string WRITE_ONLY = "write_only";
46 
48  public const string READ_WRITE = "read_write";
49  } // end struct LockType
50 
57  public string table_name { get; set; }
58 
85  public string lock_type { get; set; } = LockType.STATUS;
86 
90  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
91 
94  public LockTableRequest() { }
95 
133  public LockTableRequest( string table_name,
134  string lock_type = null,
135  IDictionary<string, string> options = null)
136  {
137  this.table_name = table_name ?? "";
139  this.options = options ?? new Dictionary<string, string>();
140  } // end constructor
141 } // end class LockTableRequest
142 
147 {
149  public string lock_type { get; set; }
150 
152  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
153 } // end class LockTableResponse
IDictionary< string, string > options
Optional parameters.
Definition: LockTable.cs:90
LockTableRequest(string table_name, string lock_type=null, IDictionary< string, string > options=null)
Constructs a LockTableRequest object with the specified parameters.
Definition: LockTable.cs:133
A set of parameters for Kinetica.lockTable.
Definition: LockTable.cs:26
const string NO_ACCESS
Allow no read/write operations.
Definition: LockTable.cs:39
const string STATUS
Show locked status.
Definition: LockTable.cs:36
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14
string lock_type
Returns the lock state of the table.
Definition: LockTable.cs:149
string lock_type
The type of lock being applied to the table.
Definition: LockTable.cs:85
const string WRITE_ONLY
Allow only write operations.
Definition: LockTable.cs:45
A set of string constants for the parameter lock_type.
Definition: LockTable.cs:33
LockTableRequest()
Constructs a LockTableRequest object with default parameters.
Definition: LockTable.cs:94
const string READ_ONLY
Allow only read operations.
Definition: LockTable.cs:42
const string READ_WRITE
Allow all read/write operations.
Definition: LockTable.cs:48
string table_name
Name of the table to be locked, in [schema_name.
Definition: LockTable.cs:57
IDictionary< string, string > info
Additional information.
Definition: LockTable.cs:152
A set of results returned by Kinetica.lockTable.
Definition: LockTable.cs:146