public static class MultiColumnRestriction.InRestrictionWithMarker extends MultiColumnRestriction.INRestriction
MultiColumnRestriction.EQRestriction, MultiColumnRestriction.INRestriction, MultiColumnRestriction.InRestrictionWithMarker, MultiColumnRestriction.InRestrictionWithValues, MultiColumnRestriction.NotNullRestriction, MultiColumnRestriction.SliceRestriction| Modifier and Type | Field and Description |
|---|---|
protected AbstractMarker |
marker |
columnDefs| Constructor and Description |
|---|
InRestrictionWithMarker(java.util.List<ColumnDefinition> columnDefs,
AbstractMarker marker) |
| 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.
|
MultiCBuilder |
appendBoundTo(MultiCBuilder builder,
Bound bound,
QueryOptions options)
Appends the values of the
Restriction for the specified bound to the specified builder. |
boolean |
hasBound(Bound b)
Checks if the specified bound is set or not.
|
boolean |
isContains() |
boolean |
isEQ() |
boolean |
isInclusive(Bound b)
Checks if the specified bound is inclusive or not.
|
boolean |
isNotNull() |
boolean |
isOnToken() |
boolean |
isSlice() |
protected static Bound |
reverseBoundIfNeeded(ColumnDefinition columnDefinition,
Bound bound)
Reverses the specified bound if the column type is a reversed one.
|
protected java.util.List<java.util.List<java.nio.ByteBuffer>> |
splitValues(QueryOptions options) |
java.lang.String |
toString() |
addRowFilterTo, appendTo, doMergeWith, isIN, isSupportedBygetColumnDefs, getColumnsInCommons, getFirstColumn, getLastColumn, hasSupportingIndex, isMultiColumn, mergeWithprotected final AbstractMarker marker
public InRestrictionWithMarker(java.util.List<ColumnDefinition> columnDefs, AbstractMarker marker)
public void addFunctionsTo(java.util.List<Function> functions)
Restrictionfunctions - the list to add topublic java.lang.String toString()
toString in class java.lang.Objectprotected java.util.List<java.util.List<java.nio.ByteBuffer>> splitValues(QueryOptions options) throws InvalidRequestException
splitValues in class MultiColumnRestriction.INRestrictionInvalidRequestExceptionpublic boolean isOnToken()
isOnToken in interface Restrictionpublic boolean isSlice()
isSlice in interface Restrictionpublic boolean isEQ()
isEQ in interface Restrictionpublic boolean isContains()
isContains in interface Restrictionpublic boolean isNotNull()
isNotNull in interface Restrictionpublic boolean hasBound(Bound b)
RestrictionhasBound in interface Restrictionb - the bound typetrue if the specified bound is set, false otherwisepublic MultiCBuilder appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options)
RestrictionRestriction for the specified bound to the specified builder.appendBoundTo in interface Restrictionbuilder - the MultiCBuilder to append to.bound - the boundoptions - the query optionsMultiCBuilderpublic boolean isInclusive(Bound b)
RestrictionisInclusive in interface Restrictionb - the bound typetrue if the specified bound is inclusive, false otherwiseprotected static Bound reverseBoundIfNeeded(ColumnDefinition columnDefinition, Bound bound)
columnDefinition - the column definitionbound - the boundCopyright © 2016 The Apache Software Foundation