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 booleanreversed
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractClusteringIndexFilter(boolean reversed)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidappendOrderByToCQLString(TableMetadata metadata, java.lang.StringBuilder sb)booleanisEmpty(ClusteringComparator comparator)booleanisReversed()Whether the filter query rows in reversed clustering order or not.protected abstract longserializedSizeInternal(int version)protected abstract voidserializeInternal(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:ClusteringIndexFilterWhether the filter query rows in reversed clustering order or not.- Specified by:
isReversedin interfaceClusteringIndexFilter- Returns:
- whether the filter query rows in reversed clustering order or not.
-
isEmpty
public boolean isEmpty(ClusteringComparator comparator)
- Specified by:
isEmptyin 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)
-
-