@@ -31,8 +31,34 @@ def _missing_(cls, value):
3131 @staticmethod
3232 def is_table (entry ):
3333 """
34+ Deprecated, use is_row_table instead of this.
35+
3436 :param entry: A scheme entry to check
35- :return: True if scheme entry is a table and False otherwise
37+ :return: True if scheme entry is a row table and False otherwise (same as is_row_table)
38+ """
39+ return entry == SchemeEntryType .TABLE
40+
41+ @staticmethod
42+ def is_any_table (entry ):
43+ """
44+ :param entry: A scheme entry to check
45+ :return: True if scheme entry is table (independent of table type) and False otherwise
46+ """
47+ return entry in (SchemeEntryType .TABLE , SchemeEntryType .COLUMN_TABLE )
48+
49+ @staticmethod
50+ def is_column_table (entry ):
51+ """
52+ :param entry: A scheme entry to check
53+ :return: True if scheme entry is a column table and False otherwise
54+ """
55+ return entry == SchemeEntryType .COLUMN_TABLE
56+
57+ @staticmethod
58+ def is_row_table (entry ):
59+ """
60+ :param entry: A scheme entry to check
61+ :return: True if scheme entry is a row table and False otherwise (same as is_table)
3662 """
3763 return entry == SchemeEntryType .TABLE
3864
@@ -104,10 +130,28 @@ def is_directory(self):
104130
105131 def is_table (self ):
106132 """
107- :return: True if scheme entry is a table and False otherwise
133+ :return: True if scheme entry is a row table and False otherwise (same as is_row_table)
108134 """
109135 return SchemeEntryType .is_table (self .type )
110136
137+ def is_column_table (self ):
138+ """
139+ :return: True if scheme entry is a column table and False otherwise (same as is_row_table)
140+ """
141+ return SchemeEntryType .is_column_table (self .type )
142+
143+ def is_row_table (self ):
144+ """
145+ :return: True if scheme entry is a row table and False otherwise (same as is_table)
146+ """
147+ return SchemeEntryType .is_table (self .type )
148+
149+ def is_any_table (self ):
150+ """
151+ :return: True if scheme entry is table (independent of table type) and False otherwise
152+ """
153+ return SchemeEntryType .is_any_table (self .type )
154+
111155 def is_database (self ):
112156 """
113157 :return: True if scheme entry is a database and False otherwise
0 commit comments