public static class MultiColumnRestriction.SliceRestriction extends MultiColumnRestriction
MultiColumnRestriction.EQRestriction, MultiColumnRestriction.INRestriction, MultiColumnRestriction.InRestrictionWithMarker, MultiColumnRestriction.InRestrictionWithValues, MultiColumnRestriction.NotNullRestriction, MultiColumnRestriction.SliceRestriction
columnDefs
Constructor and Description |
---|
SliceRestriction(java.util.List<ColumnMetadata> columnDefs,
Bound bound,
boolean inclusive,
Term term) |
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 . |
MultiCBuilder |
appendBoundTo(MultiCBuilder builder,
Bound bound,
QueryOptions options)
Appends the values of the
SingleRestriction for the specified bound to the specified builder. |
MultiCBuilder |
appendTo(MultiCBuilder builder,
QueryOptions options)
Appends the values of this
SingleRestriction to the specified builder. |
SingleRestriction |
doMergeWith(SingleRestriction otherRestriction) |
boolean |
hasBound(Bound bound)
Checks if the specified bound is set or not.
|
boolean |
isInclusive(Bound bound)
Checks if the specified bound is inclusive or not.
|
boolean |
isSlice() |
protected boolean |
isSupportedBy(Index index)
Check if this type of restriction is supported for by the specified index.
|
java.lang.String |
toString() |
getColumnDefs, getColumnsInCommons, getFirstColumn, getLastColumn, hasSupportingIndex, isMultiColumn, mergeWith
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isContains, isEQ, isIN, isLIKE, isNotNull
isOnToken
public SliceRestriction(java.util.List<ColumnMetadata> columnDefs, Bound bound, boolean inclusive, Term term)
public boolean isSlice()
public MultiCBuilder appendTo(MultiCBuilder builder, QueryOptions options)
SingleRestriction
SingleRestriction
to the specified builder.builder
- the MultiCBuilder
to append to.options
- the query optionsMultiCBuilder
public MultiCBuilder appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options)
SingleRestriction
SingleRestriction
for the specified bound to the specified builder.builder
- the MultiCBuilder
to append to.bound
- the boundoptions
- the query optionsMultiCBuilder
protected boolean isSupportedBy(Index index)
MultiColumnRestriction
isSupportedBy
in class MultiColumnRestriction
index
- the secondary indextrue
this type of restriction is supported by the specified index,
false
otherwise.public boolean hasBound(Bound bound)
SingleRestriction
bound
- the bound typetrue
if the specified bound is set, false
otherwisepublic void addFunctionsTo(java.util.List<Function> functions)
Restriction
functions
- the list to add topublic boolean isInclusive(Bound bound)
SingleRestriction
bound
- the bound typetrue
if the specified bound is inclusive, false
otherwisepublic SingleRestriction doMergeWith(SingleRestriction otherRestriction)
doMergeWith
in class MultiColumnRestriction
public final void addRowFilterTo(RowFilter filter, IndexRegistry indexRegistry, QueryOptions options)
Restriction
Restriction
.filter
- the row filter to add expressions toindexRegistry
- the index registryoptions
- the query optionspublic java.lang.String toString()
toString
in class MultiColumnRestriction
Copyright © 2009- The Apache Software Foundation