Interface Restriction
-
- All Known Subinterfaces:
Restrictions,SingleRestriction
- All Known Implementing Classes:
MultiColumnRestriction,MultiColumnRestriction.EQRestriction,MultiColumnRestriction.INRestriction,MultiColumnRestriction.InRestrictionWithMarker,MultiColumnRestriction.InRestrictionWithValues,MultiColumnRestriction.NotNullRestriction,MultiColumnRestriction.SliceRestriction,SingleColumnRestriction,SingleColumnRestriction.ContainsRestriction,SingleColumnRestriction.EQRestriction,SingleColumnRestriction.INRestriction,SingleColumnRestriction.InRestrictionWithMarker,SingleColumnRestriction.InRestrictionWithValues,SingleColumnRestriction.IsNotNullRestriction,SingleColumnRestriction.LikeRestriction,SingleColumnRestriction.SliceRestriction,TokenRestriction,TokenRestriction.EQRestriction,TokenRestriction.SliceRestriction
public interface RestrictionImplementation of this class must be immutable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddFunctionsTo(java.util.List<Function> functions)Adds all functions (native and user-defined) used by any component of the restriction to the specified list.voidaddRowFilterTo(RowFilter filter, IndexRegistry indexRegistry, QueryOptions options)Adds to the specified row filter the expressions corresponding to thisRestriction.java.util.List<ColumnMetadata>getColumnDefs()Returns the column definitions in position order.ColumnMetadatagetFirstColumn()Returns the definition of the first column.ColumnMetadatagetLastColumn()Returns the definition of the last column.booleanhasSupportingIndex(IndexRegistry indexRegistry)Check if the restriction is on indexed columns.default booleanisOnToken()
-
-
-
Method Detail
-
isOnToken
default boolean isOnToken()
-
getFirstColumn
ColumnMetadata getFirstColumn()
Returns the definition of the first column.- Returns:
- the definition of the first column.
-
getLastColumn
ColumnMetadata getLastColumn()
Returns the definition of the last column.- Returns:
- the definition of the last column.
-
getColumnDefs
java.util.List<ColumnMetadata> getColumnDefs()
Returns the column definitions in position order.- Returns:
- the column definitions in position order.
-
addFunctionsTo
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.- Parameters:
functions- the list to add to
-
hasSupportingIndex
boolean hasSupportingIndex(IndexRegistry indexRegistry)
Check if the restriction is on indexed columns.- Parameters:
indexRegistry- the index registry- Returns:
trueif the restriction is on indexed columns,false
-
addRowFilterTo
void addRowFilterTo(RowFilter filter, IndexRegistry indexRegistry, QueryOptions options)
Adds to the specified row filter the expressions corresponding to thisRestriction.- Parameters:
filter- the row filter to add expressions toindexRegistry- the index registryoptions- the query options
-
-