public static class SingleColumnRestriction.InRestrictionWithValues extends SingleColumnRestriction.INRestriction
SingleColumnRestriction.ContainsRestriction, SingleColumnRestriction.EQRestriction, SingleColumnRestriction.INRestriction, SingleColumnRestriction.InRestrictionWithMarker, SingleColumnRestriction.InRestrictionWithValues, SingleColumnRestriction.IsNotNullRestriction, SingleColumnRestriction.SliceRestriction| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Term> |
values |
columnDef| Constructor and Description |
|---|
InRestrictionWithValues(ColumnDefinition columnDef,
java.util.List<Term> values) |
| Modifier and Type | Method and Description |
|---|---|
MultiCBuilder |
appendBoundTo(MultiCBuilder 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
|
protected 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 |
isInclusive(Bound b)
Checks if the specified bound is inclusive or not.
|
boolean |
isMultiColumn() |
boolean |
isNotNull() |
boolean |
isOnToken() |
boolean |
isSlice() |
protected static Bound |
reverseBoundIfNeeded(ColumnDefinition columnDefinition,
Bound bound)
Reverses the specified bound if the column type is a reversed one.
|
java.lang.String |
toString() |
addRowFilterTo, appendTo, doMergeWith, isIN, isSupportedBygetColumnDefs, getFirstColumn, getLastColumn, hasSupportingIndex, mergeWithprotected final java.util.List<Term> values
public InRestrictionWithValues(ColumnDefinition columnDef, java.util.List<Term> values)
public java.lang.Iterable<Function> getFunctions()
Restrictionprotected java.util.List<java.nio.ByteBuffer> getValues(QueryOptions options) throws InvalidRequestException
getValues in class SingleColumnRestriction.INRestrictionInvalidRequestExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic 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 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