Package org.apache.lucene.store
Class Directory.IndexInputSlicer
java.lang.Object
org.apache.lucene.store.Directory.IndexInputSlicer
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
Directory
Allows to create one or more sliced
IndexInput
instances from a single
file handle. Some Directory
implementations may be able to efficiently map slices of a file
into memory when only certain parts of a file are required.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract IndexInput
Deprecated.Only for reading CFS files from 3.x indexes.abstract IndexInput
Returns anIndexInput
slice starting at the given offset with the given length.
-
Constructor Details
-
IndexInputSlicer
public IndexInputSlicer()
-
-
Method Details
-
openSlice
public abstract IndexInput openSlice(String sliceDescription, long offset, long length) throws IOException Returns anIndexInput
slice starting at the given offset with the given length.- Throws:
IOException
-
openFullSlice
Deprecated.Only for reading CFS files from 3.x indexes.Returns anIndexInput
slice starting at offset 0 with a length equal to the length of the underlying file- Throws:
IOException
-