public static class SingleColumnRestriction.SliceRestriction extends SingleColumnRestriction
SingleColumnRestriction.ContainsRestriction, SingleColumnRestriction.EQRestriction, SingleColumnRestriction.INRestriction, SingleColumnRestriction.InRestrictionWithMarker, SingleColumnRestriction.InRestrictionWithValues, SingleColumnRestriction.IsNotNullRestriction, SingleColumnRestriction.LikeRestriction, SingleColumnRestriction.SliceRestriction, SingleColumnRestriction.SuperColumnKeyEQRestriction, SingleColumnRestriction.SuperColumnKeyINRestriction, SingleColumnRestriction.SuperColumnKeyINRestrictionWithMarkers, SingleColumnRestriction.SuperColumnKeyINRestrictionWithValues, SingleColumnRestriction.SuperColumnKeySliceRestriction, SingleColumnRestriction.SuperColumnMultiEQRestriction, SingleColumnRestriction.SuperColumnMultiSliceRestriction
Modifier and Type | Field and Description |
---|---|
TermSlice |
slice |
columnDef
Constructor and Description |
---|
SliceRestriction(ColumnDefinition columnDef,
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,
SecondaryIndexManager indexManager,
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 b)
Checks if the specified bound is set or not.
|
boolean |
isInclusive(Bound b)
Checks if the specified bound is inclusive or not.
|
boolean |
isSlice() |
protected boolean |
isSupportedBy(Index index)
Check if this type of restriction is supported by the specified index.
|
java.lang.String |
toString() |
getColumnDefs, getFirstColumn, getLastColumn, hasSupportingIndex, mergeWith
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isContains, isEQ, isIN, isLIKE, isMultiColumn, isNotNull
isOnToken
public final TermSlice slice
public SliceRestriction(ColumnDefinition columnDef, Bound bound, boolean inclusive, Term term)
public void addFunctionsTo(java.util.List<Function> functions)
Restriction
functions
- the list to add topublic 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 boolean hasBound(Bound b)
SingleRestriction
b
- the bound typetrue
if the specified bound is set, false
otherwisepublic 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
public boolean isInclusive(Bound b)
SingleRestriction
b
- the bound typetrue
if the specified bound is inclusive, false
otherwisepublic SingleRestriction doMergeWith(SingleRestriction otherRestriction)
doMergeWith
in class SingleColumnRestriction
public void addRowFilterTo(RowFilter filter, SecondaryIndexManager indexManager, QueryOptions options)
Restriction
Restriction
.filter
- the row filter to add expressions toindexManager
- the secondary index manageroptions
- the query optionsprotected boolean isSupportedBy(Index index)
SingleColumnRestriction
isSupportedBy
in class SingleColumnRestriction
index
- the secondary indextrue
this type of restriction is supported by the specified index,
false
otherwise.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 The Apache Software Foundation