Class SnapshotFiles
java.lang.Object
org.elasticsearch.index.snapshots.blobstore.SnapshotFiles
Contains a list of files participating in a snapshot
- 
Constructor SummaryConstructorsConstructorDescriptionSnapshotFiles(String snapshot, List<BlobStoreIndexShardSnapshot.FileInfo> indexFiles, String shardStateIdentifier)
- 
Method SummaryModifier and TypeMethodDescriptionbooleancontainPhysicalIndexFile(String physicalName)Returns true if this snapshot contains a file with a given original namefindPhysicalIndexFile(String physicalName)Returns information about a physical file with the given nameReturns a list of file in the snapshotbooleanisSame(SnapshotFiles other)Checks if the given other instance contains the same files as well as the sameshardStateIdentifier.Returns an identifier for the shard state that can be used to check whether a shard has changed between snapshots or not.snapshot()Returns snapshot nametoString()longwithSnapshotName(String snapshotName)Creates a new instance with the given snapshot name but otherwise identical to the current instance.
- 
Constructor Details- 
SnapshotFilespublic SnapshotFiles(String snapshot, List<BlobStoreIndexShardSnapshot.FileInfo> indexFiles, @Nullable String shardStateIdentifier)- Parameters:
- snapshot- snapshot name
- indexFiles- index files
- shardStateIdentifier- unique identifier for the state of the shard that this snapshot was taken from
 
 
- 
- 
Method Details- 
snapshotReturns snapshot name- Returns:
- snapshot name
 
- 
withSnapshotNameCreates a new instance with the given snapshot name but otherwise identical to the current instance.
- 
isSameChecks if the given other instance contains the same files as well as the sameshardStateIdentifier.
- 
shardStateIdentifierReturns an identifier for the shard state that can be used to check whether a shard has changed between snapshots or not.
- 
indexFilesReturns a list of file in the snapshot
- 
containPhysicalIndexFileReturns true if this snapshot contains a file with a given original name- Parameters:
- physicalName- original file name
- Returns:
- true if the file was found, false otherwise
 
- 
findPhysicalIndexFileReturns information about a physical file with the given name- Parameters:
- physicalName- the original file name
- Returns:
- information about this file
 
- 
totalSizepublic long totalSize()
- 
toString
 
-