public interface Restriction
Implementation of this class must be immutable.
| Modifier and Type | Method and Description |
|---|---|
void |
addFunctionsTo(java.util.List<Function> functions)
Adds all functions (native and user-defined) used by any component of the restriction
to the specified list.
|
void |
addRowFilterTo(RowFilter filter,
IndexRegistry indexRegistry,
QueryOptions options)
Adds to the specified row filter the expressions corresponding to this
Restriction. |
java.util.List<ColumnMetadata> |
getColumnDefs()
Returns the column definitions in position order.
|
ColumnMetadata |
getFirstColumn()
Returns the definition of the first column.
|
ColumnMetadata |
getLastColumn()
Returns the definition of the last column.
|
boolean |
hasSupportingIndex(IndexRegistry indexRegistry)
Check if the restriction is on indexed columns.
|
default boolean |
isOnToken() |
default boolean isOnToken()
ColumnMetadata getFirstColumn()
ColumnMetadata getLastColumn()
java.util.List<ColumnMetadata> getColumnDefs()
void addFunctionsTo(java.util.List<Function> functions)
functions - the list to add toboolean hasSupportingIndex(IndexRegistry indexRegistry)
indexRegistry - the index registrytrue if the restriction is on indexed columns, falsevoid addRowFilterTo(RowFilter filter, IndexRegistry indexRegistry, QueryOptions options)
Restriction.filter - the row filter to add expressions toindexRegistry - the index registryoptions - the query optionsCopyright © 2009-2022 The Apache Software Foundation