public class ColumnFilter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ColumnFilter.Builder |
static class |
ColumnFilter.Serializer |
static class |
ColumnFilter.Tester |
Modifier and Type | Field and Description |
---|---|
static ColumnFilter.Serializer |
serializer |
Modifier and Type | Method and Description |
---|---|
static ColumnFilter |
all(CFMetaData metadata)
A selection that includes all columns (and their values).
|
static ColumnFilter.Builder |
allColumnsBuilder(CFMetaData metadata)
Returns a
ColumnFilter } builder that includes all columns (so the selections
added to the builder are the columns/cells for which we shouldn't skip the values). |
boolean |
canSkipValue(ColumnDefinition column)
Whether we can skip the value for the provided selected column.
|
boolean |
canSkipValue(ColumnDefinition column,
CellPath path)
Whether we can skip the value of the cell of a complex column.
|
boolean |
equals(java.lang.Object other) |
PartitionColumns |
fetchedColumns()
The columns that needs to be fetched internally for this selection.
|
boolean |
includes(Cell cell)
Whether the provided cell of a complex column is selected by this selection.
|
boolean |
includes(ColumnDefinition column)
Whether the provided column is selected by this selection.
|
boolean |
includesAllColumns() |
ColumnFilter.Tester |
newTester(ColumnDefinition column)
Creates a new
Tester to efficiently test the inclusion of cells of complex column
column . |
static ColumnFilter |
selection(CFMetaData metadata,
PartitionColumns queried)
A filter that fetches all columns for the provided table, but returns
only the queried ones.
|
static ColumnFilter |
selection(PartitionColumns columns)
A selection that only fetch the provided columns.
|
static ColumnFilter.Builder |
selectionBuilder()
Returns a
ColumnFilter } builder that includes only the columns/cells
added to the builder. |
java.lang.String |
toString() |
public static final ColumnFilter.Serializer serializer
public static ColumnFilter all(CFMetaData metadata)
public static ColumnFilter selection(PartitionColumns columns)
Note that this shouldn't be used for CQL queries in general as all columns should be queried to preserve CQL semantic (see class javadoc). This is ok for some internal queries however (and for #6588 if/when we implement it).
public static ColumnFilter selection(CFMetaData metadata, PartitionColumns queried)
public PartitionColumns fetchedColumns()
This is the columns that must be present in the internal rows returned by queries using this selection, not the columns that are actually queried by the user (see the class javadoc for details).
public boolean includesAllColumns()
public boolean includes(ColumnDefinition column)
public boolean canSkipValue(ColumnDefinition column)
public boolean includes(Cell cell)
public boolean canSkipValue(ColumnDefinition column, CellPath path)
public ColumnFilter.Tester newTester(ColumnDefinition column)
Tester
to efficiently test the inclusion of cells of complex column
column
.public static ColumnFilter.Builder allColumnsBuilder(CFMetaData metadata)
ColumnFilter
} builder that includes all columns (so the selections
added to the builder are the columns/cells for which we shouldn't skip the values).public static ColumnFilter.Builder selectionBuilder()
ColumnFilter
} builder that includes only the columns/cells
added to the builder.public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2020 The Apache Software Foundation