Class TableSnapshot.SnapshotTrueSizeCalculator
- java.lang.Object
-
- java.nio.file.SimpleFileVisitor<java.nio.file.Path>
-
- org.apache.cassandra.utils.DirectorySizeCalculator
-
- org.apache.cassandra.service.snapshot.TableSnapshot.SnapshotTrueSizeCalculator
-
- All Implemented Interfaces:
java.nio.file.FileVisitor<java.nio.file.Path>
- Enclosing class:
- TableSnapshot
public static class TableSnapshot.SnapshotTrueSizeCalculator extends DirectorySizeCalculator
-
-
Constructor Summary
Constructors Constructor Description SnapshotTrueSizeCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAcceptable(java.nio.file.Path snapshotFilePath)Snapshots are composed of hard-linked sstables.-
Methods inherited from class org.apache.cassandra.utils.DirectorySizeCalculator
getAllocatedSize, resetSize, visitFile, visitFileFailed
-
-
-
-
Method Detail
-
isAcceptable
public boolean isAcceptable(java.nio.file.Path snapshotFilePath)
Snapshots are composed of hard-linked sstables. The true snapshot size should only include snapshot files which do not contain a corresponding "live" sstable file.- Overrides:
isAcceptablein classDirectorySizeCalculator
-
-