File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change
1
+ * Added functions for check column table type table of any type of scheme entry
2
+
1
3
## 3.4.0 ##
2
4
* Add to public topic reader api: TopicReaderBatch, wait_message
3
5
Original file line number Diff line number Diff line change @@ -32,7 +32,31 @@ def _missing_(cls, value):
32
32
def is_table (entry ):
33
33
"""
34
34
:param entry: A scheme entry to check
35
- :return: True if scheme entry is a table and False otherwise
35
+ :return: True if scheme entry is a row table and False otherwise (same as is_row_table)
36
+ """
37
+ return entry == SchemeEntryType .TABLE
38
+
39
+ @staticmethod
40
+ def is_any_table (entry ):
41
+ """
42
+ :param entry: A scheme entry to check
43
+ :return: True if scheme entry is table of any type and False otherwise
44
+ """
45
+ return entry in [SchemeEntryType .TABLE , SchemeEntryType .COLUMN_TABLE ]
46
+
47
+ @staticmethod
48
+ def is_column_table (entry ):
49
+ """
50
+ :param entry: A scheme entry to check
51
+ :return: True if scheme entry is a column table and False otherwise
52
+ """
53
+ return entry == SchemeEntryType .COLUMN_TABLE
54
+
55
+ @staticmethod
56
+ def is_row_table (entry ):
57
+ """
58
+ :param entry: A scheme entry to check
59
+ :return: True if scheme entry is a row table and False otherwise (same as is_table)
36
60
"""
37
61
return entry == SchemeEntryType .TABLE
38
62
You can’t perform that action at this time.
0 commit comments