public static final class TokenRestriction.EQRestriction extends TokenRestriction
TokenRestriction.EQRestriction, TokenRestriction.SliceRestriction| Modifier and Type | Field and Description |
|---|---|
protected ClusteringComparator |
comparator
The composite type.
|
columnDefs| Constructor and Description |
|---|
EQRestriction(CFMetaData cfm,
java.util.List<ColumnDefinition> columnDefs,
Term value) |
| 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. |
java.util.List<java.nio.ByteBuffer> |
bounds(Bound b,
QueryOptions options) |
protected org.apache.cassandra.cql3.restrictions.PrimaryKeyRestrictions |
doMergeWith(TokenRestriction otherRestriction)
Merges this restriction with the specified
TokenRestriction. |
boolean |
hasBound(Bound b)
Checks if the specified bound is set or not.
|
boolean |
isContains() |
boolean |
isEmpty()
Checks if this
PrimaryKeyRestrictionSet is empty or not. |
boolean |
isEQ() |
boolean |
isIN() |
boolean |
isInclusive(Bound b)
Checks if the specified bound is inclusive or not.
|
boolean |
isMultiColumn() |
boolean |
isNotNull() |
boolean |
isSlice() |
protected static Bound |
reverseBoundIfNeeded(ColumnDefinition columnDefinition,
Bound bound)
Reverses the specified bound if the column type is a reversed one.
|
int |
size()
Returns the number of columns that have a restriction.
|
java.util.List<java.nio.ByteBuffer> |
values(QueryOptions options) |
addRowFilterTo, appendTo, boundsAsClustering, getColumnDefs, getColumnNamesAsString, getFirstColumn, getLastColumn, hasSupportingIndex, isOnToken, mergeWith, valuesAsClusteringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendBoundTo, hasBound, isContains, isIN, isInclusive, isMultiColumn, isNotNull, isSliceprotected final ClusteringComparator comparator
public EQRestriction(CFMetaData cfm, java.util.List<ColumnDefinition> columnDefs, Term value)
public boolean isEQ()
isEQ in interface Restrictionpublic void addFunctionsTo(java.util.List<Function> functions)
Restrictionfunctions - the list to add toprotected org.apache.cassandra.cql3.restrictions.PrimaryKeyRestrictions doMergeWith(TokenRestriction otherRestriction) throws InvalidRequestException
TokenRestrictionTokenRestriction.doMergeWith in class TokenRestrictionotherRestriction - the TokenRestriction to merge with.InvalidRequestExceptionpublic java.util.List<java.nio.ByteBuffer> values(QueryOptions options) throws InvalidRequestException
InvalidRequestExceptionpublic java.util.List<java.nio.ByteBuffer> bounds(Bound b, QueryOptions options) throws InvalidRequestException
InvalidRequestExceptionpublic final boolean isEmpty()
PrimaryKeyRestrictionSet is empty or not.true if this PrimaryKeyRestrictionSet is empty, false otherwise.public final int size()
public boolean isMultiColumn()
isMultiColumn in interface Restrictionpublic boolean isSlice()
isSlice in interface Restrictionpublic boolean isIN()
isIN 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