Package org.apache.cassandra.db
Class SizeEstimatesRecorder
- java.lang.Object
-
- org.apache.cassandra.schema.SchemaChangeListener
-
- org.apache.cassandra.db.SizeEstimatesRecorder
-
- All Implemented Interfaces:
java.lang.Runnable
public class SizeEstimatesRecorder extends SchemaChangeListener implements java.lang.Runnable
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 Modifier and Type Field Description static SizeEstimatesRecorder
instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onDropTable(java.lang.String keyspace, java.lang.String table)
void
run()
-
Methods inherited from class org.apache.cassandra.schema.SchemaChangeListener
onAlterAggregate, onAlterFunction, onAlterKeyspace, onAlterTable, onAlterType, onAlterView, onCreateAggregate, onCreateFunction, onCreateKeyspace, onCreateTable, onCreateType, onCreateView, onDropAggregate, onDropFunction, onDropKeyspace, onDropType, onDropView
-
-
-
-
Field Detail
-
instance
public static final SizeEstimatesRecorder instance
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
onDropTable
public void onDropTable(java.lang.String keyspace, java.lang.String table)
- Overrides:
onDropTable
in classSchemaChangeListener
-
-