Class SnapshotFiles
- java.lang.Object
-
- org.elasticsearch.index.snapshots.blobstore.SnapshotFiles
-
public class SnapshotFiles extends Object
Contains a list of files participating in a snapshot
-
-
Constructor Summary
Constructors Constructor Description SnapshotFiles(String snapshot, List<BlobStoreIndexShardSnapshot.FileInfo> indexFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainPhysicalIndexFile(String physicalName)Returns true if this snapshot contains a file with a given original nameBlobStoreIndexShardSnapshot.FileInfofindPhysicalIndexFile(String physicalName)Returns information about a physical file with the given nameList<BlobStoreIndexShardSnapshot.FileInfo>indexFiles()Returns a list of file in the snapshotStringsnapshot()
-
-
-
Constructor Detail
-
SnapshotFiles
public SnapshotFiles(String snapshot, List<BlobStoreIndexShardSnapshot.FileInfo> indexFiles)
-
-
Method Detail
-
snapshot
public String snapshot()
-
indexFiles
public List<BlobStoreIndexShardSnapshot.FileInfo> indexFiles()
Returns a list of file in the snapshot
-
containPhysicalIndexFile
public boolean containPhysicalIndexFile(String physicalName)
Returns 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
-
findPhysicalIndexFile
public BlobStoreIndexShardSnapshot.FileInfo findPhysicalIndexFile(String physicalName)
Returns information about a physical file with the given name- Parameters:
physicalName- the original file name- Returns:
- information about this file
-
-