public static class ColumnFilter.WildCardColumnFilter extends ColumnFilter
ColumnFilter
sub-class for wildcard queries.
The class does not rely on TableMetadata and expects a fix set of columns to prevent issues with Schema race propagation. See CASSANDRA-15899.
ColumnFilter.Builder, ColumnFilter.SelectionColumnFilter, ColumnFilter.Serializer, ColumnFilter.Tester, ColumnFilter.WildCardColumnFilter
NONE, serializer
Modifier and Type | Method and Description |
---|---|
boolean |
allFetchedColumnsAreQueried()
Whether _fetched_ == _queried_ for this filter, and so if the
isQueried() methods
can return false for some column/cell. |
boolean |
equals(java.lang.Object other) |
boolean |
fetchedCellIsQueried(ColumnMetadata column,
CellPath path)
Whether the provided complex cell (identified by its column and path), which is assumed to be _fetched_ by
this filter, is also _queried_ by the user.
|
boolean |
fetchedColumnIsQueried(ColumnMetadata column)
Whether the provided column, which is assumed to be _fetched_ by this filter (so the caller must guarantee
that
fetches(column) == true , is also _queried_ by the user. |
RegularAndStaticColumns |
fetchedColumns()
The columns that needs to be fetched internally for this filter.
|
boolean |
fetches(ColumnMetadata column)
Whether the provided column is fetched by this filter.
|
boolean |
fetchesAllColumns(boolean isStatic)
Whether all the (regular or static) columns are fetched by this filter.
|
int |
hashCode() |
boolean |
isWildcard()
Checks if this
ColumnFilter is for a wildcard query. |
ColumnFilter.Tester |
newTester(ColumnMetadata column)
Creates a new
Tester to efficiently test the inclusion of cells of complex column
column . |
RegularAndStaticColumns |
queriedColumns()
The columns actually queried by the user.
|
protected com.google.common.collect.SortedSetMultimap<ColumnIdentifier,ColumnSubselection> |
subSelections()
Returns the sub-selections or
null if there are none. |
java.lang.String |
toCQLString()
Returns the CQL string corresponding to this
ColumnFilter . |
java.lang.String |
toString() |
all, allRegularColumnsBuilder, selection, selection, selectionBuilder
public RegularAndStaticColumns fetchedColumns()
ColumnFilter
fetchedColumns
in class ColumnFilter
public RegularAndStaticColumns queriedColumns()
ColumnFilter
Note that this is in general not all the columns that are fetched internally (see ColumnFilter.fetchedColumns()
).
queriedColumns
in class ColumnFilter
public boolean fetchesAllColumns(boolean isStatic)
ColumnFilter
Note that this method is meant as an optimization but a negative return
shouldn't be relied upon strongly: this can return false
but
still have all the columns fetches if those were manually selected by the
user. The goal here is to cheaply avoid filtering things on wildcard
queries, as those are common.
fetchesAllColumns
in class ColumnFilter
isStatic
- whether to check for static columns or not. If true
,
the method returns if all static columns are fetched, otherwise it checks
regular columns.public boolean allFetchedColumnsAreQueried()
ColumnFilter
isQueried()
methods
can return false
for some column/cell.allFetchedColumnsAreQueried
in class ColumnFilter
public boolean fetches(ColumnMetadata column)
ColumnFilter
fetches
in class ColumnFilter
public boolean fetchedColumnIsQueried(ColumnMetadata column)
ColumnFilter
fetches(column) == true
, is also _queried_ by the user.
!WARNING! please be sure to understand the difference between _fetched_ and _queried_
columns that this class made before using this method. If unsure, you probably want
to use the ColumnFilter.fetches(org.apache.cassandra.schema.ColumnMetadata)
method.fetchedColumnIsQueried
in class ColumnFilter
public boolean fetchedCellIsQueried(ColumnMetadata column, CellPath path)
ColumnFilter
ColumnFilter.fetches(org.apache.cassandra.schema.ColumnMetadata)
method.fetchedCellIsQueried
in class ColumnFilter
public ColumnFilter.Tester newTester(ColumnMetadata column)
ColumnFilter
Tester
to efficiently test the inclusion of cells of complex column
column
.newTester
in class ColumnFilter
column
- for complex column for which to create a tester.null
if all the cells from the provided column
are queried.public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toCQLString()
ColumnFilter
ColumnFilter
.toCQLString
in class ColumnFilter
ColumnFilter
.public boolean isWildcard()
ColumnFilter
ColumnFilter
is for a wildcard query.isWildcard
in class ColumnFilter
true
if this ColumnFilter
is for a wildcard query, false
otherwise.protected com.google.common.collect.SortedSetMultimap<ColumnIdentifier,ColumnSubselection> subSelections()
ColumnFilter
null
if there are none.subSelections
in class ColumnFilter
null
if there are noneCopyright © 2009-2022 The Apache Software Foundation