File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ class SchemeEntryType(enum.IntEnum):
19
19
RTMR_VOLUME = 5
20
20
BLOCK_STORE_VOLUME = 6
21
21
COORDINATION_NODE = 7
22
+ COLUMN_STORE = 12
22
23
COLUMN_TABLE = 13
23
24
SEQUENCE = 15
24
25
REPLICATION = 16
@@ -54,6 +55,14 @@ def is_column_table(entry):
54
55
"""
55
56
return entry == SchemeEntryType .COLUMN_TABLE
56
57
58
+ @staticmethod
59
+ def is_column_store (entry ):
60
+ """
61
+ :param entry: A scheme entry to check
62
+ :return: True if scheme entry is a column store and False otherwise
63
+ """
64
+ return entry == SchemeEntryType .COLUMN_STORE
65
+
57
66
@staticmethod
58
67
def is_row_table (entry ):
59
68
"""
@@ -128,6 +137,12 @@ def is_directory(self):
128
137
"""
129
138
return SchemeEntryType .is_directory (self .type )
130
139
140
+ def is_column_store (self ):
141
+ """
142
+ :return: True if scheme entry is a column store and False otherwise
143
+ """
144
+ return SchemeEntryType .is_column_store (self .type )
145
+
131
146
def is_table (self ):
132
147
"""
133
148
:return: True if scheme entry is a row table and False otherwise (same as is_row_table)
You can’t perform that action at this time.
0 commit comments