Module org.elasticsearch.xcore
Class SourceOnlySnapshot.LinkedFilesDirectory
java.lang.Object
org.apache.lucene.store.Directory
org.elasticsearch.snapshots.sourceonly.SourceOnlySnapshot.LinkedFilesDirectory
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
SourceOnlySnapshot
public static class SourceOnlySnapshot.LinkedFilesDirectory
extends org.apache.lucene.store.Directory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcopyFrom(org.apache.lucene.store.Directory from, String src, String dest, org.apache.lucene.store.IOContext context) org.apache.lucene.store.IndexOutputcreateOutput(String name, org.apache.lucene.store.IOContext context) org.apache.lucene.store.IndexOutputcreateTempOutput(String prefix, String suffix, org.apache.lucene.store.IOContext context) voiddeleteFile(String name) longfileLength(String name) org.apache.lucene.store.DirectoryString[]listAll()org.apache.lucene.store.LockobtainLock(String name) org.apache.lucene.store.IndexInputvoidvoidsync(Collection<String> names) voidMethods inherited from class org.apache.lucene.store.Directory
ensureOpen, getTempFileName, openChecksumInput, toString
-
Constructor Details
-
LinkedFilesDirectory
public LinkedFilesDirectory(org.apache.lucene.store.Directory wrapped)
-
-
Method Details
-
getWrapped
public org.apache.lucene.store.Directory getWrapped() -
listAll
- Specified by:
listAllin classorg.apache.lucene.store.Directory- Throws:
IOException
-
deleteFile
- Specified by:
deleteFilein classorg.apache.lucene.store.Directory- Throws:
IOException
-
fileLength
- Specified by:
fileLengthin classorg.apache.lucene.store.Directory- Throws:
IOException
-
createOutput
public org.apache.lucene.store.IndexOutput createOutput(String name, org.apache.lucene.store.IOContext context) throws IOException - Specified by:
createOutputin classorg.apache.lucene.store.Directory- Throws:
IOException
-
createTempOutput
public org.apache.lucene.store.IndexOutput createTempOutput(String prefix, String suffix, org.apache.lucene.store.IOContext context) throws IOException - Specified by:
createTempOutputin classorg.apache.lucene.store.Directory- Throws:
IOException
-
sync
- Specified by:
syncin classorg.apache.lucene.store.Directory- Throws:
IOException
-
syncMetaData
- Specified by:
syncMetaDatain classorg.apache.lucene.store.Directory- Throws:
IOException
-
rename
- Specified by:
renamein classorg.apache.lucene.store.Directory- Throws:
IOException
-
openInput
public org.apache.lucene.store.IndexInput openInput(String name, org.apache.lucene.store.IOContext context) throws IOException - Specified by:
openInputin classorg.apache.lucene.store.Directory- Throws:
IOException
-
obtainLock
- Specified by:
obtainLockin classorg.apache.lucene.store.Directory- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classorg.apache.lucene.store.Directory- Throws:
IOException
-
copyFrom
public void copyFrom(org.apache.lucene.store.Directory from, String src, String dest, org.apache.lucene.store.IOContext context) throws IOException - Overrides:
copyFromin classorg.apache.lucene.store.Directory- Throws:
IOException
-
getPendingDeletions
- Specified by:
getPendingDeletionsin classorg.apache.lucene.store.Directory- Throws:
IOException
-