Package org.apache.cassandra.db.filter
Class ColumnSubselection
- java.lang.Object
-
- org.apache.cassandra.db.filter.ColumnSubselection
-
- All Implemented Interfaces:
java.lang.Comparable<ColumnSubselection>
public abstract class ColumnSubselection extends java.lang.Object implements java.lang.Comparable<ColumnSubselection>
Handles the selection of a subpart of a column.This only make sense for complex column. For those, this allow for instance to select only a slice of a map.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classColumnSubselection.Serializer
-
Field Summary
Fields Modifier and Type Field Description protected ColumnMetadatacolumnstatic ColumnSubselection.Serializerserializer
-
Constructor Summary
Constructors Modifier Constructor Description protectedColumnSubselection(ColumnMetadata column)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ColumnMetadatacolumn()abstract intcompareInclusionOf(CellPath path)Given a path, return -1 if the path is before anything selected by this subselection, 0 if it is selected by this subselection and 1 if the path is after anything selected by this subselection.intcompareTo(ColumnSubselection other)protected abstract CellPathcomparisonPath()static ColumnSubselectionelement(ColumnMetadata column, CellPath elt)protected abstract org.apache.cassandra.db.filter.ColumnSubselection.Kindkind()static ColumnSubselectionslice(ColumnMetadata column, CellPath from, CellPath to)java.lang.StringtoString()protected abstract java.lang.StringtoString(boolean cql)
-
-
-
Field Detail
-
serializer
public static final ColumnSubselection.Serializer serializer
-
column
protected final ColumnMetadata column
-
-
Constructor Detail
-
ColumnSubselection
protected ColumnSubselection(ColumnMetadata column)
-
-
Method Detail
-
slice
public static ColumnSubselection slice(ColumnMetadata column, CellPath from, CellPath to)
-
element
public static ColumnSubselection element(ColumnMetadata column, CellPath elt)
-
column
public ColumnMetadata column()
-
kind
protected abstract org.apache.cassandra.db.filter.ColumnSubselection.Kind kind()
-
comparisonPath
protected abstract CellPath comparisonPath()
-
compareTo
public int compareTo(ColumnSubselection other)
- Specified by:
compareToin interfacejava.lang.Comparable<ColumnSubselection>
-
compareInclusionOf
public abstract int compareInclusionOf(CellPath path)
Given a path, return -1 if the path is before anything selected by this subselection, 0 if it is selected by this subselection and 1 if the path is after anything selected by this subselection.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
protected abstract java.lang.String toString(boolean cql)
-
-