Package org.apache.calcite.sql.validate
Interface SemanticTable
- All Known Implementing Classes:
MockCatalogReader.MustFilterMockTable
public interface SemanticTable
Extension to
SqlValidatorTable
with extra, optional metadata.
Used to flag individual columns as 'must-filter'.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable String
getFilter
(int column) Returns the filter expression forcolumn
if it is amust-filter
column, or null if it is not a must-filter column.default boolean
mustFilter
(int column) Returns whethercolumn
must be filtered in any query that references this table.
-
Method Details
-
getFilter
Returns the filter expression forcolumn
if it is amust-filter
column, or null if it is not a must-filter column.- Parameters:
column
- Column ordinal (0-based)- Throws:
IndexOutOfBoundsException
- if column ordinal is out of range
-
mustFilter
default boolean mustFilter(int column) Returns whethercolumn
must be filtered in any query that references this table.- Parameters:
column
- Column ordinal (0-based)- Throws:
IndexOutOfBoundsException
- if column ordinal is out of range
-