diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-04-11 21:22:54 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-04-11 21:31:13 +0300 |
commit | 2ab5f8b12b9381254255f38fe3c34dd0dd0de2c8 (patch) | |
tree | 3ef2df824ed04804b39e5ddbaa1f44bc39e9a39f | |
parent | c7906f50268a8a123f9c00e5e22779e695d76a22 (diff) | |
download | ydb-2ab5f8b12b9381254255f38fe3c34dd0dd0de2c8.tar.gz |
Intermediate changes
-rw-r--r-- | contrib/python/ydb/py3/ydb/scheme.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/python/ydb/py3/ydb/scheme.py b/contrib/python/ydb/py3/ydb/scheme.py index 6019c763e5..04951b5eae 100644 --- a/contrib/python/ydb/py3/ydb/scheme.py +++ b/contrib/python/ydb/py3/ydb/scheme.py @@ -19,6 +19,7 @@ class SchemeEntryType(enum.IntEnum): RTMR_VOLUME = 5 BLOCK_STORE_VOLUME = 6 COORDINATION_NODE = 7 + COLUMN_STORE = 12 COLUMN_TABLE = 13 SEQUENCE = 15 REPLICATION = 16 @@ -55,6 +56,14 @@ class SchemeEntryType(enum.IntEnum): return entry == SchemeEntryType.COLUMN_TABLE @staticmethod + def is_column_store(entry): + """ + :param entry: A scheme entry to check + :return: True if scheme entry is a column store and False otherwise + """ + return entry == SchemeEntryType.COLUMN_STORE + + @staticmethod def is_row_table(entry): """ :param entry: A scheme entry to check @@ -128,6 +137,12 @@ class SchemeEntry(object): """ return SchemeEntryType.is_directory(self.type) + def is_column_store(self): + """ + :return: True if scheme entry is a column store and False otherwise + """ + return SchemeEntryType.is_column_store(self.type) + def is_table(self): """ :return: True if scheme entry is a row table and False otherwise (same as is_row_table) |