public static final class SingleColumnRestriction.Contains extends SingleColumnRestriction
SingleColumnRestriction.Contains, SingleColumnRestriction.EQ, SingleColumnRestriction.IN, SingleColumnRestriction.InWithMarker, SingleColumnRestriction.InWithValues, SingleColumnRestriction.SlicecolumnDef| Constructor and Description |
|---|
Contains(ColumnDefinition columnDef,
Term t,
boolean isKey) |
Contains(ColumnDefinition columnDef,
Term mapKey,
Term mapValue) |
| 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(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) |
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 |
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.
|
int |
numberOfEntries() |
int |
numberOfKeys() |
int |
numberOfValues() |
java.lang.String |
toString() |
protected static java.nio.ByteBuffer |
validateIndexedValue(ColumnSpecification columnSpec,
java.nio.ByteBuffer value) |
getColumnDefs, getFirstColumn, getLastColumn, hasSupportingIndex, mergeWithpublic Contains(ColumnDefinition columnDef, Term t, boolean isKey)
public Contains(ColumnDefinition columnDef, Term mapKey, Term mapValue)
public CompositesBuilder appendTo(CompositesBuilder builder, QueryOptions options)
RestrictionRestriction to the specified builder.builder - the CompositesBuilder to append to.options - the query optionsCompositesBuilderpublic boolean isContains()
isContains in interface Restrictionpublic Restriction doMergeWith(Restriction otherRestriction) throws InvalidRequestException
doMergeWith in class SingleColumnRestrictionInvalidRequestExceptionpublic 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 boolean isSupportedBy(SecondaryIndex index)
SingleColumnRestrictionisSupportedBy in class SingleColumnRestrictionindex - the Secondary indextrue this type of restriction is supported by the specified index,
false otherwise.public int numberOfValues()
public int numberOfKeys()
public int numberOfEntries()
public java.lang.Iterable<Function> getFunctions()
Restrictionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean hasBound(Bound b)
RestrictionhasBound in interface Restrictionb - the bound typetrue if the specified bound is set, false otherwisepublic CompositesBuilder appendBoundTo(CompositesBuilder builder, Bound bound, QueryOptions options)
RestrictionRestriction for the specified bound to the specified builder.appendBoundTo in interface Restrictionbuilder - 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 isOnToken()
isOnToken in interface Restrictionpublic boolean isMultiColumn()
isMultiColumn in interface Restrictionpublic boolean isSlice()
isSlice in interface Restrictionpublic boolean isEQ()
isEQ in interface Restrictionpublic boolean isIN()
isIN in interface Restrictionprotected static java.nio.ByteBuffer validateIndexedValue(ColumnSpecification columnSpec, java.nio.ByteBuffer value) throws InvalidRequestException
InvalidRequestExceptionCopyright © 2015 The Apache Software Foundation