Class ShardManagerDiskAware
java.lang.Object
org.apache.cassandra.db.compaction.ShardManagerNoDisks
org.apache.cassandra.db.compaction.ShardManagerDiskAware
- All Implemented Interfaces:
ShardManager
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.cassandra.db.compaction.ShardManagerNoDisks
ShardManagerNoDisks.BoundaryTracker -
Field Summary
Fields inherited from interface org.apache.cassandra.db.compaction.ShardManager
MINIMUM_TOKEN_COVERAGE -
Constructor Summary
ConstructorsConstructorDescriptionShardManagerDiskAware(ColumnFamilyStore.VersionedLocalRanges localRanges, List<Token> diskBoundaries) -
Method Summary
Modifier and TypeMethodDescriptionboundaries(int shardCount) Construct a boundary/shard iterator for the given number of shards.doubleThe fraction of the token space covered by a shard set, i.e.Methods inherited from class org.apache.cassandra.db.compaction.ShardManagerNoDisks
isOutOfDate, localSpaceCoverage, rangeSpannedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.db.compaction.ShardManager
calculateCombinedDensity, compareByDensity, density, rangeSpanned, rangeSpanned
-
Constructor Details
-
ShardManagerDiskAware
public ShardManagerDiskAware(ColumnFamilyStore.VersionedLocalRanges localRanges, List<Token> diskBoundaries)
-
-
Method Details
-
shardSetCoverage
public double shardSetCoverage()Description copied from interface:ShardManagerThe fraction of the token space covered by a shard set, i.e. the space that is split in the requested number of shards. If no disks are defined, this is the same as localSpaceCoverage(). Otherwise, it is the token coverage of a disk.- Specified by:
shardSetCoveragein interfaceShardManager- Overrides:
shardSetCoveragein classShardManagerNoDisks
-
boundaries
Construct a boundary/shard iterator for the given number of shards.- Specified by:
boundariesin interfaceShardManager- Overrides:
boundariesin classShardManagerNoDisks
-