Class TableSnapshot
java.lang.Object
org.apache.cassandra.service.snapshot.TableSnapshot
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringbuildSnapshotId(String keyspaceName, String tableName, UUID tableId, String tag) longlongbooleanbooleanexists()getId()Unique identifier of a snapshot.getTag()inthashCode()booleanbooleanbooleanstatic Predicate<TableSnapshot>shouldClearSnapshot(String tag, long olderThanTimestamp) toString()
-
Constructor Details
-
TableSnapshot
-
-
Method Details
-
getId
Unique identifier of a snapshot. Used only to deduplicate snapshots internally, not exposed externally. table_id may be empty for tables created prior to 2.1Format: "$ks:$table_name:$table_id:$tag"
-
getKeyspaceName
-
getTableName
-
getTag
-
getCreatedAt
-
getExpiresAt
-
isExpired
-
exists
public boolean exists() -
isEphemeral
public boolean isEphemeral() -
isExpiring
public boolean isExpiring() -
computeSizeOnDiskBytes
public long computeSizeOnDiskBytes() -
computeTrueSizeBytes
public long computeTrueSizeBytes() -
getDirectories
-
getManifestFile
-
getSchemaFile
-
equals
-
hashCode
public int hashCode() -
toString
-
buildSnapshotId
-
shouldClearSnapshot
-