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,
SecondaryIndexManager indexManager,
QueryOptions options)
Adds to the specified row filter the expressions corresponding to this
Restriction. |
java.util.List<ColumnDefinition> |
getColumnDefs()
Returns the column definitions in position order.
|
ColumnDefinition |
getFirstColumn()
Returns the definition of the first column.
|
ColumnDefinition |
getLastColumn()
Returns the definition of the last column.
|
boolean |
hasSupportingIndex(SecondaryIndexManager indexManager)
Check if the restriction is on indexed columns.
|
default boolean |
isOnToken() |
default boolean isOnToken()
ColumnDefinition getFirstColumn()
ColumnDefinition getLastColumn()
java.util.List<ColumnDefinition> getColumnDefs()
void addFunctionsTo(java.util.List<Function> functions)
functions - the list to add toboolean hasSupportingIndex(SecondaryIndexManager indexManager)
indexManager - the index managertrue if the restriction is on indexed columns, falsevoid addRowFilterTo(RowFilter filter, SecondaryIndexManager indexManager, QueryOptions options)
Restriction.filter - the row filter to add expressions toindexManager - the secondary index manageroptions - the query optionsCopyright © 2018 The Apache Software Foundation