public static class MultiColumnRestriction.InWithMarker extends MultiColumnRestriction.IN
MultiColumnRestriction.EQ, MultiColumnRestriction.IN, MultiColumnRestriction.InWithMarker, MultiColumnRestriction.InWithValues, MultiColumnRestriction.Slice
Modifier and Type | Field and Description |
---|---|
protected AbstractMarker |
marker |
columnDefs
Constructor and Description |
---|
InWithMarker(java.util.List<ColumnDefinition> columnDefs,
AbstractMarker marker) |
Modifier and Type | Method and Description |
---|---|
CompositesBuilder |
appendBoundTo(CFMetaData cfm,
CompositesBuilder builder,
Bound bound,
QueryOptions options)
Appends the values of the
Restriction for the specified bound to the specified builder. |
java.lang.Iterable<Function> |
getFunctions()
Return an Iterable over all of the functions (both native and user-defined) used by any component
of the restriction
|
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 |
isNotReturningAnyRows(CFMetaData cfm,
QueryOptions options)
Checks if this restriction will prevent the query to return any rows.
|
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() |
protected static java.nio.ByteBuffer |
validateIndexedValue(ColumnSpecification columnSpec,
java.nio.ByteBuffer value) |
addIndexExpressionTo, appendTo, doMergeWith, isIN, isSupportedBy
getColumnDefs, getColumnsInCommons, getFirstColumn, getLastColumn, hasSupportingIndex, isMultiColumn, mergeWith
protected final AbstractMarker marker
public InWithMarker(java.util.List<ColumnDefinition> columnDefs, AbstractMarker marker)
public java.lang.Iterable<Function> getFunctions()
Restriction
public java.lang.String toString()
toString
in class java.lang.Object
protected java.util.List<java.util.List<java.nio.ByteBuffer>> splitValues(QueryOptions options) throws InvalidRequestException
splitValues
in class MultiColumnRestriction.IN
InvalidRequestException
public boolean isOnToken()
isOnToken
in interface Restriction
public boolean isSlice()
isSlice
in interface Restriction
public boolean isEQ()
isEQ
in interface Restriction
public boolean isContains()
isContains
in interface Restriction
public boolean hasBound(Bound b)
Restriction
hasBound
in interface Restriction
b
- the bound typetrue
if the specified bound is set, false
otherwisepublic CompositesBuilder appendBoundTo(CFMetaData cfm, CompositesBuilder builder, Bound bound, QueryOptions options)
Restriction
Restriction
for the specified bound to the specified builder.appendBoundTo
in interface Restriction
cfm
- the table metadatabuilder
- the CompositesBuilder
to append to.bound
- the boundoptions
- the query optionsCompositesBuilder
public boolean isInclusive(Bound b)
Restriction
isInclusive
in interface Restriction
b
- the bound typetrue
if the specified bound is inclusive, false
otherwisepublic boolean isNotReturningAnyRows(CFMetaData cfm, QueryOptions options)
Restriction
isNotReturningAnyRows
in interface Restriction
cfm
- the table metadataoptions
- the query optionstrue
if this restriction will prevent the query to return any rows, otherwiseprotected static java.nio.ByteBuffer validateIndexedValue(ColumnSpecification columnSpec, java.nio.ByteBuffer value) throws InvalidRequestException
InvalidRequestException
protected static Bound reverseBoundIfNeeded(ColumnDefinition columnDefinition, Bound bound)
columnDefinition
- the column definitionbound
- the boundCopyright © 2018 The Apache Software Foundation