Package org.apache.cassandra.db.virtual
Class AbstractVirtualTable
java.lang.Object
org.apache.cassandra.db.virtual.AbstractVirtualTable
- All Implemented Interfaces:
VirtualTable
- Direct Known Subclasses:
AbstractMutableVirtualTable,AbstractVirtualTable.SimpleTable,BatchMetricsTable,CIDRFilteringMetricsTable.CIDRFilteringMetricsCountsTable,CIDRFilteringMetricsTable.CIDRFilteringMetricsLatenciesTable,ColumnIndexesSystemView,InternodeInboundTable,InternodeOutboundTable,SegmentsSystemView,SettingsTable,SnapshotsTable,SSTableIndexesSystemView,StreamingVirtualTable
An abstract virtual table implementation that builds the resultset on demand.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn abstract, map-backed DataSet implementation.static interfacestatic interfacestatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(PartitionUpdate update) Applies the specified update, if supported.abstract AbstractVirtualTable.DataSetdata()Provide aAbstractVirtualTable.DataSetthat is contains all of the virtual table's data.data(DecoratedKey partitionKey) Provide aAbstractVirtualTable.DataSetthat is potentially restricted to the provided partition - but is allowed to contain other partitions.metadata()Returns the view metadata.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.toString()voidtruncate()Truncates data from the underlying source, if supported.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.db.virtual.VirtualTable
allowFilteringImplicitly, name
-
Field Details
-
metadata
-
-
Constructor Details
-
AbstractVirtualTable
-
-
Method Details
-
metadata
Description copied from interface:VirtualTableReturns the view metadata.- Specified by:
metadatain interfaceVirtualTable- Returns:
- the view metadata.
-
data
Provide aAbstractVirtualTable.DataSetthat is contains all of the virtual table's data. -
data
Provide aAbstractVirtualTable.DataSetthat is potentially restricted to the provided partition - but is allowed to contain other partitions. -
select
public final UnfilteredPartitionIterator select(DecoratedKey partitionKey, ClusteringIndexFilter clusteringIndexFilter, ColumnFilter columnFilter) Description copied from interface:VirtualTableSelects the rows from a single partition.- Specified by:
selectin interfaceVirtualTable- Parameters:
partitionKey- the partition keyclusteringIndexFilter- the clustering columns to selectedcolumnFilter- the selected columns- Returns:
- the rows corresponding to the requested data.
-
select
Description copied from interface:VirtualTableSelects the rows from a range of partitions.- Specified by:
selectin interfaceVirtualTable- Parameters:
dataRange- the range of data to retrievecolumnFilter- the selected columns- Returns:
- the rows corresponding to the requested data.
-
apply
Description copied from interface:VirtualTableApplies the specified update, if supported.- Specified by:
applyin interfaceVirtualTable- Parameters:
update- the update to apply
-
truncate
public void truncate()Description copied from interface:VirtualTableTruncates data from the underlying source, if supported.- Specified by:
truncatein interfaceVirtualTable
-
toString
-