Package org.apache.cassandra.db.virtual
Interface VirtualTable
- All Known Implementing Classes:
AbstractMutableVirtualTable,AbstractVirtualTable,AbstractVirtualTable.SimpleTable,BatchMetricsTable,CIDRFilteringMetricsTable.CIDRFilteringMetricsCountsTable,CIDRFilteringMetricsTable.CIDRFilteringMetricsLatenciesTable,ColumnIndexesSystemView,InternodeInboundTable,InternodeOutboundTable,LogMessagesTable,SegmentsSystemView,SettingsTable,SnapshotsTable,SSTableIndexesSystemView,StreamingVirtualTable
public interface VirtualTable
A system view used to expose system information.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanTells whetherALLOW FILTERINGis implicitly added to select statement which requires it.voidapply(PartitionUpdate update) Applies the specified update, if supported.metadata()Returns the view metadata.default Stringname()Returns the view name.select(DataRange dataRange, ColumnFilter columnFilter) Selects the rows from a range of partitions.select(DecoratedKey partitionKey, ClusteringIndexFilter clusteringIndexFilter, ColumnFilter columnFilter) Selects the rows from a single partition.voidtruncate()Truncates data from the underlying source, if supported.
-
Method Details
-
name
Returns the view name.- Returns:
- the view name.
-
metadata
TableMetadata metadata()Returns the view metadata.- Returns:
- the view metadata.
-
apply
Applies the specified update, if supported.- Parameters:
update- the update to apply
-
select
UnfilteredPartitionIterator select(DecoratedKey partitionKey, ClusteringIndexFilter clusteringIndexFilter, ColumnFilter columnFilter) Selects the rows from a single partition.- Parameters:
partitionKey- the partition keyclusteringIndexFilter- the clustering columns to selectedcolumnFilter- the selected columns- Returns:
- the rows corresponding to the requested data.
-
select
Selects the rows from a range of partitions.- Parameters:
dataRange- the range of data to retrievecolumnFilter- the selected columns- Returns:
- the rows corresponding to the requested data.
-
truncate
void truncate()Truncates data from the underlying source, if supported. -
allowFilteringImplicitly
default boolean allowFilteringImplicitly()Tells whetherALLOW FILTERINGis implicitly added to select statement which requires it. Defaults to true.- Returns:
- true if
ALLOW FILTERINGis implicitly added to select statements when required, false otherwise.
-