public abstract static class SingleColumnRestriction.IN extends SingleColumnRestriction
SingleColumnRestriction.Contains, SingleColumnRestriction.EQ, SingleColumnRestriction.IN, SingleColumnRestriction.InWithMarker, SingleColumnRestriction.InWithValues, SingleColumnRestriction.SlicecolumnDef| 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
IndexExpressions corresponding to this Restriction. |
CompositesBuilder |
appendBoundTo(CFMetaData cfm,
CompositesBuilder builder,
Bound bound,
QueryOptions options)
Appends the values of the
Restriction for the specified bound to the specified builder. |
CompositesBuilder |
appendTo(CFMetaData cfm,
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 |
isNotReturningAnyRows(CFMetaData cfm,
QueryOptions options)
Checks if this restriction will prevent the query to return any rows.
|
boolean |
isOnToken() |
boolean |
isSlice() |
protected boolean |
isSupportedBy(SecondaryIndex index)
Check if this type of restriction is supported by the specified index.
|
protected static Bound |
reverseBoundIfNeeded(ColumnDefinition columnDefinition,
Bound bound)
Reverses the specified bound if the column type is a reversed one.
|
protected static java.nio.ByteBuffer |
validateIndexedValue(ColumnSpecification columnSpec,
java.nio.ByteBuffer value) |
getColumnDefs, getFirstColumn, getLastColumn, hasSupportingIndex, mergeWithclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFunctionspublic IN(ColumnDefinition columnDef)
public final boolean isIN()
isIN in interface Restrictionpublic final Restriction doMergeWith(Restriction otherRestriction) throws InvalidRequestException
doMergeWith in class SingleColumnRestrictionInvalidRequestExceptionpublic CompositesBuilder appendTo(CFMetaData cfm, CompositesBuilder builder, QueryOptions options)
RestrictionRestriction to the specified builder.cfm - the table metadatabuilder - the CompositesBuilder to append to.options - the query optionsCompositesBuilderpublic void addIndexExpressionTo(java.util.List<IndexExpression> expressions, SecondaryIndexManager indexManager, QueryOptions options) throws InvalidRequestException
RestrictionIndexExpressions corresponding to this Restriction.expressions - the list to add the IndexExpressions toindexManager - the secondary index manageroptions - the query optionsInvalidRequestException - if this Restriction cannot be converted into
IndexExpressionsprotected final boolean isSupportedBy(SecondaryIndex index)
SingleColumnRestrictionisSupportedBy in class SingleColumnRestrictionindex - 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
InvalidRequestExceptionpublic boolean isOnToken()
isOnToken in interface Restrictionpublic boolean isMultiColumn()
isMultiColumn in interface Restrictionpublic boolean isSlice()
isSlice in interface Restrictionpublic boolean isEQ()
isEQ in interface Restrictionpublic boolean isContains()
isContains in interface Restrictionpublic boolean hasBound(Bound b)
RestrictionhasBound in interface Restrictionb - the bound typetrue if the specified bound is set, false otherwisepublic CompositesBuilder appendBoundTo(CFMetaData cfm, CompositesBuilder builder, Bound bound, QueryOptions options)
RestrictionRestriction for the specified bound to the specified builder.appendBoundTo in interface Restrictioncfm - the table metadatabuilder - the CompositesBuilder to append to.bound - the boundoptions - the query optionsCompositesBuilderpublic boolean isInclusive(Bound b)
RestrictionisInclusive in interface Restrictionb - the bound typetrue if the specified bound is inclusive, false otherwisepublic boolean isNotReturningAnyRows(CFMetaData cfm, QueryOptions options)
RestrictionisNotReturningAnyRows in interface Restrictioncfm - 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
InvalidRequestExceptionprotected static Bound reverseBoundIfNeeded(ColumnDefinition columnDefinition, Bound bound)
columnDefinition - the column definitionbound - the boundCopyright © 2018 The Apache Software Foundation