public abstract class ColumnSubselection extends java.lang.Object implements java.lang.Comparable<ColumnSubselection>
This only make sense for complex column. For those, this allow for instance to select only a slice of a map.
Modifier and Type | Class and Description |
---|---|
static class |
ColumnSubselection.Serializer |
Modifier and Type | Field and Description |
---|---|
protected ColumnMetadata |
column |
static ColumnSubselection.Serializer |
serializer |
Modifier | Constructor and Description |
---|---|
protected |
ColumnSubselection(ColumnMetadata column) |
Modifier and Type | Method and Description |
---|---|
ColumnMetadata |
column() |
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.
|
int |
compareTo(ColumnSubselection other) |
protected abstract CellPath |
comparisonPath() |
static ColumnSubselection |
element(ColumnMetadata column,
CellPath elt) |
protected abstract org.apache.cassandra.db.filter.ColumnSubselection.Kind |
kind() |
static ColumnSubselection |
slice(ColumnMetadata column,
CellPath from,
CellPath to) |
public static final ColumnSubselection.Serializer serializer
protected final ColumnMetadata column
protected ColumnSubselection(ColumnMetadata column)
public static ColumnSubselection slice(ColumnMetadata column, CellPath from, CellPath to)
public static ColumnSubselection element(ColumnMetadata column, CellPath elt)
public ColumnMetadata column()
protected abstract org.apache.cassandra.db.filter.ColumnSubselection.Kind kind()
protected abstract CellPath comparisonPath()
public int compareTo(ColumnSubselection other)
compareTo
in interface java.lang.Comparable<ColumnSubselection>
public abstract int compareInclusionOf(CellPath path)
Copyright © 2009-2020 The Apache Software Foundation