public abstract static class SingleColumnRestriction.IN extends SingleColumnRestriction
SingleColumnRestriction.Contains, SingleColumnRestriction.EQ, SingleColumnRestriction.IN, SingleColumnRestriction.InWithMarker, SingleColumnRestriction.InWithValues, SingleColumnRestriction.Slice
columnDef
Constructor and Description |
---|
IN(ColumnDefinition columnDef) |
Modifier and Type | Method and Description |
---|---|
void |
addIndexExpressionTo(java.util.List<IndexExpression> expressions,
SecondaryIndexManager indexManager,
QueryOptions options)
Adds to the specified list the
IndexExpression s corresponding to this Restriction . |
CompositesBuilder |
appendBoundTo(CompositesBuilder builder,
Bound bound,
QueryOptions options)
Appends the values of the
Restriction for the specified bound to the specified builder. |
CompositesBuilder |
appendTo(CompositesBuilder builder,
QueryOptions options)
Appends the values of this
Restriction to the specified builder. |
Restriction |
doMergeWith(Restriction otherRestriction) |
protected abstract java.util.List<java.nio.ByteBuffer> |
getValues(QueryOptions options) |
boolean |
hasBound(Bound b)
Checks if the specified bound is set or not.
|
boolean |
isContains() |
boolean |
isEQ() |
boolean |
isIN() |
boolean |
isInclusive(Bound b)
Checks if the specified bound is inclusive or not.
|
boolean |
isMultiColumn() |
boolean |
isOnToken() |
boolean |
isSlice() |
protected boolean |
isSupportedBy(SecondaryIndex index)
Check if this type of restriction is supported by the specified index.
|
protected static java.nio.ByteBuffer |
validateIndexedValue(ColumnSpecification columnSpec,
java.nio.ByteBuffer value) |
getColumnDefs, getFirstColumn, getLastColumn, hasSupportingIndex, mergeWith
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFunctions
public IN(ColumnDefinition columnDef)
public final boolean isIN()
isIN
in interface Restriction
public final Restriction doMergeWith(Restriction otherRestriction) throws InvalidRequestException
doMergeWith
in class SingleColumnRestriction
InvalidRequestException
public CompositesBuilder appendTo(CompositesBuilder builder, QueryOptions options)
Restriction
Restriction
to the specified builder.builder
- the CompositesBuilder
to append to.options
- the query optionsCompositesBuilder
public void addIndexExpressionTo(java.util.List<IndexExpression> expressions, SecondaryIndexManager indexManager, QueryOptions options) throws InvalidRequestException
Restriction
IndexExpression
s corresponding to this Restriction
.expressions
- the list to add the IndexExpression
s toindexManager
- the secondary index manageroptions
- the query optionsInvalidRequestException
- if this Restriction
cannot be converted into
IndexExpression
sprotected final boolean isSupportedBy(SecondaryIndex index)
SingleColumnRestriction
isSupportedBy
in class SingleColumnRestriction
index
- the Secondary indextrue
this type of restriction is supported by the specified index,
false
otherwise.protected abstract java.util.List<java.nio.ByteBuffer> getValues(QueryOptions options) throws InvalidRequestException
InvalidRequestException
public boolean isOnToken()
isOnToken
in interface Restriction
public boolean isMultiColumn()
isMultiColumn
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(CompositesBuilder builder, Bound bound, QueryOptions options)
Restriction
Restriction
for the specified bound to the specified builder.appendBoundTo
in interface Restriction
builder
- 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
otherwiseprotected static java.nio.ByteBuffer validateIndexedValue(ColumnSpecification columnSpec, java.nio.ByteBuffer value) throws InvalidRequestException
InvalidRequestException
Copyright © 2015 The Apache Software Foundation