Kinetica C# API  Version 6.0.1.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 
25  {
26 
34  public struct LockType
35  {
36 
38  public const string STATUS = "status";
39 
41  public const string DISABLE = "disable";
42 
44  public const string READ_ONLY = "read-only";
45 
47  public const string WRITE_ONLY = "write-only";
48 
50  public const string UNLOCK = "unlock";
51  } // end struct LockType
52 
53 
56  public string table_name { get; set; }
57 
63  public string lock_type { get; set; } = LockType.STATUS;
64 
66  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
67 
68 
71  public LockTableRequest() { }
72 
85  public LockTableRequest( string table_name,
86  string lock_type = null,
87  IDictionary<string, string> options = null)
88  {
89  this.table_name = table_name ?? "";
90  this.lock_type = lock_type ?? LockType.STATUS;
91  this.options = options ?? new Dictionary<string, string>();
92  } // end constructor
93 
94  } // end class LockTableRequest
95 
96 
97 
100  {
101 
103  public string lock_type { get; set; }
104 
105  } // end class LockTableResponse
106 
107 
108 
109 
110 } // end namespace kinetica
string lock_type
The type of lock being applied to the table.
Definition: LockTable.cs:63
A set of parameters for /lock/table.
Definition: LockTable.cs:24
const string DISABLE
Allow no read/write operations
Definition: LockTable.cs:41
const string UNLOCK
Allow all read/write operations
Definition: LockTable.cs:50
LockTableRequest(string table_name, string lock_type=null, IDictionary< string, string > options=null)
Constructs a LockTableRequest object with the specified parameters.
Definition: LockTable.cs:85
const string WRITE_ONLY
Allow only write operations
Definition: LockTable.cs:47
const string READ_ONLY
Allow only read operations
Definition: LockTable.cs:44
string table_name
Name of the table to be locked.
Definition: LockTable.cs:56
string lock_type
Returns the lock state of the table.
Definition: LockTable.cs:103
LockTableRequest()
Constructs a LockTableRequest object with default parameters.
Definition: LockTable.cs:71
The type of lock being applied to the table.
Definition: LockTable.cs:34
IDictionary< string, string > options
Optional parameters.
Definition: LockTable.cs:66
const string STATUS
Show locked status
Definition: LockTable.cs:38
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14
A set of results returned by /lock/table.
Definition: LockTable.cs:99