Package org.apache.cassandra.db
Class SizeEstimatesRecorder
java.lang.Object
org.apache.cassandra.db.SizeEstimatesRecorder
- All Implemented Interfaces:
Runnable,SchemaChangeListener
A very simplistic/crude partition count/size estimator.
Exposing per-primary-range estimated partitions count and size in CQL form.
Estimates (per primary range) are calculated and dumped into a system table (system.size_estimates) every 5 minutes.
See CASSANDRA-7688.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidonDropTable(TableMetadata table, boolean dropData) voidrun()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.schema.SchemaChangeListener
onAlterAggregate, onAlterFunction, onAlterKeyspace, onAlterTable, onAlterType, onAlterView, onCreateAggregate, onCreateFunction, onCreateKeyspace, onCreateTable, onCreateType, onCreateView, onDropAggregate, onDropFunction, onDropKeyspace, onDropType, onDropView, onPreAlterTable, onPreAlterView
-
Field Details
-
instance
-
-
Method Details
-
run
public void run() -
onDropTable
- Specified by:
onDropTablein interfaceSchemaChangeListener
-