Package org.apache.cassandra.db.filter
Class AbstractClusteringIndexFilter
- java.lang.Object
-
- org.apache.cassandra.db.filter.AbstractClusteringIndexFilter
-
- All Implemented Interfaces:
ClusteringIndexFilter
- Direct Known Subclasses:
ClusteringIndexNamesFilter
,ClusteringIndexSliceFilter
public abstract class AbstractClusteringIndexFilter extends java.lang.Object implements ClusteringIndexFilter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.db.filter.ClusteringIndexFilter
ClusteringIndexFilter.InternalDeserializer, ClusteringIndexFilter.Kind, ClusteringIndexFilter.Serializer
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
reversed
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractClusteringIndexFilter(boolean reversed)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
appendOrderByToCQLString(TableMetadata metadata, java.lang.StringBuilder sb)
boolean
isEmpty(ClusteringComparator comparator)
boolean
isReversed()
Whether the filter query rows in reversed clustering order or not.protected abstract long
serializedSizeInternal(int version)
protected abstract void
serializeInternal(DataOutputPlus out, int version)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.db.filter.ClusteringIndexFilter
filterNotIndexed, forPaging, getSlices, getUnfilteredRowIterator, isFullyCoveredBy, isHeadFilter, kind, selects, selectsAllPartition, shouldInclude, toCQLString, toString
-
-
-
-
Method Detail
-
isReversed
public boolean isReversed()
Description copied from interface:ClusteringIndexFilter
Whether the filter query rows in reversed clustering order or not.- Specified by:
isReversed
in interfaceClusteringIndexFilter
- Returns:
- whether the filter query rows in reversed clustering order or not.
-
isEmpty
public boolean isEmpty(ClusteringComparator comparator)
- Specified by:
isEmpty
in interfaceClusteringIndexFilter
-
serializeInternal
protected abstract void serializeInternal(DataOutputPlus out, int version) throws java.io.IOException
- Throws:
java.io.IOException
-
serializedSizeInternal
protected abstract long serializedSizeInternal(int version)
-
appendOrderByToCQLString
protected void appendOrderByToCQLString(TableMetadata metadata, java.lang.StringBuilder sb)
-
-