public static class SingleColumnRestriction.SuperColumnKeySliceRestriction extends SingleColumnRestriction.SliceRestriction
SingleColumnRestriction.ContainsRestriction, SingleColumnRestriction.EQRestriction, SingleColumnRestriction.INRestriction, SingleColumnRestriction.InRestrictionWithMarker, SingleColumnRestriction.InRestrictionWithValues, SingleColumnRestriction.IsNotNullRestriction, SingleColumnRestriction.SliceRestriction, SingleColumnRestriction.SuperColumnKeyEQRestriction, SingleColumnRestriction.SuperColumnKeyINRestriction, SingleColumnRestriction.SuperColumnKeyINRestrictionWithMarkers, SingleColumnRestriction.SuperColumnKeyINRestrictionWithValues, SingleColumnRestriction.SuperColumnKeySliceRestriction, SingleColumnRestriction.SuperColumnMultiEQRestriction, SingleColumnRestriction.SuperColumnMultiSliceRestriction
slice
columnDef
Constructor and Description |
---|
SuperColumnKeySliceRestriction(ColumnDefinition columnDef,
Bound bound,
boolean inclusive,
Term term) |
Modifier and Type | Method and Description |
---|---|
void |
addRowFilterTo(RowFilter filter,
SecondaryIndexManager indexManager,
QueryOptions options)
Adds to the specified row filter the expressions corresponding to this
Restriction . |
MultiCBuilder |
appendBoundTo(MultiCBuilder builder,
Bound bound,
QueryOptions options)
Appends the values of the
Restriction for the specified bound to the specified builder. |
java.nio.ByteBuffer |
bindValue(QueryOptions options) |
boolean |
isContains() |
boolean |
isEQ() |
boolean |
isIN() |
boolean |
isMultiColumn() |
boolean |
isNotNull() |
boolean |
isOnToken() |
protected static Bound |
reverseBoundIfNeeded(ColumnDefinition columnDefinition,
Bound bound)
Reverses the specified bound if the column type is a reversed one.
|
addFunctionsTo, appendTo, doMergeWith, hasBound, isInclusive, isSlice, isSupportedBy, toString
getColumnDefs, getFirstColumn, getLastColumn, hasSupportingIndex, mergeWith
public SuperColumnKeySliceRestriction(ColumnDefinition columnDef, Bound bound, boolean inclusive, Term term)
public java.nio.ByteBuffer bindValue(QueryOptions options)
public MultiCBuilder appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options)
Restriction
Restriction
for the specified bound to the specified builder.appendBoundTo
in interface Restriction
appendBoundTo
in class SingleColumnRestriction.SliceRestriction
builder
- the MultiCBuilder
to append to.bound
- the boundoptions
- the query optionsMultiCBuilder
public void addRowFilterTo(RowFilter filter, SecondaryIndexManager indexManager, QueryOptions options) throws InvalidRequestException
Restriction
Restriction
.addRowFilterTo
in interface Restriction
addRowFilterTo
in class SingleColumnRestriction.SliceRestriction
filter
- the row filter to add expressions toindexManager
- the secondary index manageroptions
- the query optionsInvalidRequestException
- if this Restriction
cannot be converted into a row filterpublic boolean isOnToken()
isOnToken
in interface Restriction
public boolean isMultiColumn()
isMultiColumn
in interface Restriction
public boolean isEQ()
isEQ
in interface Restriction
public boolean isIN()
isIN
in interface Restriction
public boolean isContains()
isContains
in interface Restriction
public boolean isNotNull()
isNotNull
in interface Restriction
protected static Bound reverseBoundIfNeeded(ColumnDefinition columnDefinition, Bound bound)
columnDefinition
- the column definitionbound
- the boundCopyright © 2021 The Apache Software Foundation