public static class MultiColumnRestriction.InRestrictionWithValues extends MultiColumnRestriction.INRestriction
MultiColumnRestriction.EQRestriction, MultiColumnRestriction.INRestriction, MultiColumnRestriction.InRestrictionWithMarker, MultiColumnRestriction.InRestrictionWithValues, MultiColumnRestriction.SliceRestriction
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Term> |
values |
columnDefs
Constructor and Description |
---|
InRestrictionWithValues(java.util.List<ColumnDefinition> columnDefs,
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
|
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 |
isOnToken() |
boolean |
isSlice() |
protected java.util.List<java.util.List<java.nio.ByteBuffer>> |
splitValues(QueryOptions options) |
java.lang.String |
toString() |
addRowFilterTo, appendTo, doMergeWith, isIN, isSupportedBy
getColumnDefs, getColumnsInCommons, getFirstColumn, getLastColumn, hasSupportingIndex, isMultiColumn, mergeWith
protected final java.util.List<Term> values
public InRestrictionWithValues(java.util.List<ColumnDefinition> columnDefs, java.util.List<Term> values)
public java.lang.Iterable<Function> getFunctions()
Restriction
public java.lang.String toString()
toString
in class java.lang.Object
protected java.util.List<java.util.List<java.nio.ByteBuffer>> splitValues(QueryOptions options) throws InvalidRequestException
splitValues
in class MultiColumnRestriction.INRestriction
InvalidRequestException
public boolean isOnToken()
isOnToken
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 MultiCBuilder appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options)
Restriction
Restriction
for the specified bound to the specified builder.appendBoundTo
in interface Restriction
builder
- the MultiCBuilder
to append to.bound
- the boundoptions
- the query optionsMultiCBuilder
public boolean isInclusive(Bound b)
Restriction
isInclusive
in interface Restriction
b
- the bound typetrue
if the specified bound is inclusive, false
otherwiseCopyright © 2015 The Apache Software Foundation