Package org.apache.cassandra.db.virtual
Class AbstractMutableVirtualTable
java.lang.Object
org.apache.cassandra.db.virtual.AbstractVirtualTable
org.apache.cassandra.db.virtual.AbstractMutableVirtualTable
- All Implemented Interfaces:
VirtualTable
- Direct Known Subclasses:
LogMessagesTable
An abstract virtual table implementation that builds the resultset on demand and allows fine-grained source
modification via INSERT/UPDATE, DELETE and TRUNCATE operations.
Virtual table implementation need to be thread-safe has they can be called from different threads.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA regular column value.static final classA set of partition key or clustering column values.Nested classes/interfaces inherited from class org.apache.cassandra.db.virtual.AbstractVirtualTable
AbstractVirtualTable.AbstractDataSet, AbstractVirtualTable.DataSet, AbstractVirtualTable.Partition, AbstractVirtualTable.SimpleTable -
Field Summary
Fields inherited from class org.apache.cassandra.db.virtual.AbstractVirtualTable
metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidapply(PartitionUpdate update) Applies the specified update, if supported.protected voidapplyColumnDeletion(AbstractMutableVirtualTable.ColumnValues partitionKey, AbstractMutableVirtualTable.ColumnValues clusteringColumns, String columnName) protected voidapplyColumnUpdate(AbstractMutableVirtualTable.ColumnValues partitionKey, AbstractMutableVirtualTable.ColumnValues clusteringColumns, Optional<AbstractMutableVirtualTable.ColumnValue> columnValue) protected voidprotected voidapplyRangeTombstone(AbstractMutableVirtualTable.ColumnValues partitionKey, com.google.common.collect.Range<AbstractMutableVirtualTable.ColumnValues> range) protected voidapplyRowDeletion(AbstractMutableVirtualTable.ColumnValues partitionKey, AbstractMutableVirtualTable.ColumnValues clusteringColumns) Methods inherited from class org.apache.cassandra.db.virtual.AbstractVirtualTable
data, data, metadata, select, select, toString, truncateMethods 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
-
Constructor Details
-
AbstractMutableVirtualTable
-
-
Method Details
-
apply
Description copied from interface:VirtualTableApplies the specified update, if supported.- Specified by:
applyin interfaceVirtualTable- Overrides:
applyin classAbstractVirtualTable- Parameters:
update- the update to apply
-
applyPartitionDeletion
-
applyRangeTombstone
protected void applyRangeTombstone(AbstractMutableVirtualTable.ColumnValues partitionKey, com.google.common.collect.Range<AbstractMutableVirtualTable.ColumnValues> range) -
applyRowDeletion
protected void applyRowDeletion(AbstractMutableVirtualTable.ColumnValues partitionKey, AbstractMutableVirtualTable.ColumnValues clusteringColumns) -
applyColumnDeletion
protected void applyColumnDeletion(AbstractMutableVirtualTable.ColumnValues partitionKey, AbstractMutableVirtualTable.ColumnValues clusteringColumns, String columnName) -
applyColumnUpdate
protected void applyColumnUpdate(AbstractMutableVirtualTable.ColumnValues partitionKey, AbstractMutableVirtualTable.ColumnValues clusteringColumns, Optional<AbstractMutableVirtualTable.ColumnValue> columnValue)
-