Package org.apache.cassandra.db.filter
Class ColumnSubselection
java.lang.Object
org.apache.cassandra.db.filter.ColumnSubselection
- All Implemented Interfaces:
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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ColumnMetadatastatic final ColumnSubselection.Serializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolumn()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 CellPathstatic ColumnSubselectionelement(ColumnMetadata column, CellPath elt) protected abstract org.apache.cassandra.db.filter.ColumnSubselection.Kindkind()static ColumnSubselectionslice(ColumnMetadata column, CellPath from, CellPath to) toString()protected abstract StringtoString(boolean cql)
-
Field Details
-
serializer
-
column
-
-
Constructor Details
-
ColumnSubselection
-
-
Method Details
-
slice
-
element
-
column
-
kind
protected abstract org.apache.cassandra.db.filter.ColumnSubselection.Kind kind() -
comparisonPath
-
compareTo
- Specified by:
compareToin interfaceComparable<ColumnSubselection>
-
compareInclusionOf
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
-
toString
-