Class AutoRepairUtils.SizeEstimate
java.lang.Object
org.apache.cassandra.repair.autorepair.AutoRepairUtils.SizeEstimate
- Enclosing class:
- AutoRepairUtils
Represents a size estimate by both bytes and partition count for a given keyspace and table for a token range.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSizeEstimate(AutoRepairConfig.RepairType repairType, String keyspace, String table, Range<Token> tokenRange, long partitions, long sizeInRange, long totalSize) -
Method Summary
-
Field Details
-
repairType
-
keyspace
-
table
-
tokenRange
-
partitions
public final long partitions -
sizeInRange
public final long sizeInRange -
totalSize
public final long totalSize -
sizeForRepair
public final long sizeForRepairSize to consider in the repair. For incremental repair, we want to consider the total size of the estimate as we have to factor in anticompacting the entire SSTable. For full repair, just use the size containing the range.
-
-
Constructor Details
-
SizeEstimate
public SizeEstimate(AutoRepairConfig.RepairType repairType, String keyspace, String table, Range<Token> tokenRange, long partitions, long sizeInRange, long totalSize)
-
-
Method Details