Class SingleColumnRestriction.LikeRestriction
- java.lang.Object
-
- org.apache.cassandra.cql3.restrictions.SingleColumnRestriction
-
- org.apache.cassandra.cql3.restrictions.SingleColumnRestriction.LikeRestriction
-
- All Implemented Interfaces:
Restriction,SingleRestriction
- Enclosing class:
- SingleColumnRestriction
public static final class SingleColumnRestriction.LikeRestriction extends SingleColumnRestriction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.cassandra.cql3.restrictions.SingleColumnRestriction
SingleColumnRestriction.ContainsRestriction, SingleColumnRestriction.EQRestriction, SingleColumnRestriction.INRestriction, SingleColumnRestriction.InRestrictionWithMarker, SingleColumnRestriction.InRestrictionWithValues, SingleColumnRestriction.IsNotNullRestriction, SingleColumnRestriction.LikeRestriction, SingleColumnRestriction.SliceRestriction
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.cql3.restrictions.SingleColumnRestriction
columnDef
-
-
Constructor Summary
Constructors Constructor Description LikeRestriction(ColumnMetadata columnDef, Operator operator, Term value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFunctionsTo(java.util.List<Function> functions)Adds all functions (native and user-defined) used by any component of the restriction to the specified list.voidaddRowFilterTo(RowFilter filter, IndexRegistry indexRegistry, QueryOptions options)Adds to the specified row filter the expressions corresponding to thisRestriction.MultiCBuilderappendTo(MultiCBuilder builder, QueryOptions options)Appends the values of thisSingleRestrictionto the specified builder.booleancanBeConvertedToMultiColumnRestriction()SingleRestrictiondoMergeWith(SingleRestriction otherRestriction)booleanisEQ()booleanisLIKE()protected booleanisSupportedBy(Index index)Check if this type of restriction is supported by the specified index.java.lang.StringtoString()-
Methods inherited from class org.apache.cassandra.cql3.restrictions.SingleColumnRestriction
getColumnDefs, getFirstColumn, getLastColumn, hasSupportingIndex, mergeWith
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.restrictions.Restriction
isOnToken
-
Methods inherited from interface org.apache.cassandra.cql3.restrictions.SingleRestriction
appendBoundTo, hasBound, isContains, isIN, isInclusive, isMultiColumn, isNotNull, isSlice
-
-
-
-
Constructor Detail
-
LikeRestriction
public LikeRestriction(ColumnMetadata columnDef, Operator operator, Term value)
-
-
Method Detail
-
addFunctionsTo
public void addFunctionsTo(java.util.List<Function> functions)
Description copied from interface:RestrictionAdds all functions (native and user-defined) used by any component of the restriction to the specified list.- Parameters:
functions- the list to add to
-
isEQ
public boolean isEQ()
-
isLIKE
public boolean isLIKE()
-
canBeConvertedToMultiColumnRestriction
public boolean canBeConvertedToMultiColumnRestriction()
-
addRowFilterTo
public void addRowFilterTo(RowFilter filter, IndexRegistry indexRegistry, QueryOptions options)
Description copied from interface:RestrictionAdds to the specified row filter the expressions corresponding to thisRestriction.- Parameters:
filter- the row filter to add expressions toindexRegistry- the index registryoptions- the query options
-
appendTo
public MultiCBuilder appendTo(MultiCBuilder builder, QueryOptions options)
Description copied from interface:SingleRestrictionAppends the values of thisSingleRestrictionto the specified builder.- Parameters:
builder- theMultiCBuilderto append to.options- the query options- Returns:
- the
MultiCBuilder
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
doMergeWith
public SingleRestriction doMergeWith(SingleRestriction otherRestriction)
- Specified by:
doMergeWithin classSingleColumnRestriction
-
isSupportedBy
protected boolean isSupportedBy(Index index)
Description copied from class:SingleColumnRestrictionCheck if this type of restriction is supported by the specified index.- Specified by:
isSupportedByin classSingleColumnRestriction- Parameters:
index- the secondary index- Returns:
truethis type of restriction is supported by the specified index,falseotherwise.
-
-