Class ShardManagerDiskAware
- java.lang.Object
-
- org.apache.cassandra.db.compaction.ShardManagerNoDisks
-
- org.apache.cassandra.db.compaction.ShardManagerDiskAware
-
- All Implemented Interfaces:
ShardManager
public class ShardManagerDiskAware extends ShardManagerNoDisks
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ShardManagerDiskAware.BoundaryTrackerDiskAware
-
Nested 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
Constructors Constructor Description ShardManagerDiskAware(ColumnFamilyStore.VersionedLocalRanges localRanges, java.util.List<Token> diskBoundaries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShardTracker
boundaries(int shardCount)
Construct a boundary/shard iterator for the given number of shards.double
shardSetCoverage()
The fraction of the token space covered by a shard set, i.e.-
Methods inherited from class org.apache.cassandra.db.compaction.ShardManagerNoDisks
isOutOfDate, localSpaceCoverage, rangeSpanned
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.db.compaction.ShardManager
calculateCombinedDensity, compareByDensity, density, rangeSpanned, rangeSpanned
-
-
-
-
Constructor Detail
-
ShardManagerDiskAware
public ShardManagerDiskAware(ColumnFamilyStore.VersionedLocalRanges localRanges, java.util.List<Token> diskBoundaries)
-
-
Method Detail
-
shardSetCoverage
public double shardSetCoverage()
Description copied from interface:ShardManager
The 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:
shardSetCoverage
in interfaceShardManager
- Overrides:
shardSetCoverage
in classShardManagerNoDisks
-
boundaries
public ShardTracker boundaries(int shardCount)
Construct a boundary/shard iterator for the given number of shards.- Specified by:
boundaries
in interfaceShardManager
- Overrides:
boundaries
in classShardManagerNoDisks
-
-