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
public abstract class Directory.IndexInputSlicer extends Object implements Closeable
Allows to create one or more slicedIndexInputinstances from a single file handle. SomeDirectoryimplementations may be able to efficiently map slices of a file into memory when only certain parts of a file are required.
-
-
Constructor Summary
Constructors Constructor Description IndexInputSlicer()
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description abstract IndexInputopenFullSlice()Deprecated.Only for reading CFS files from 3.x indexes.abstract IndexInputopenSlice(String sliceDescription, long offset, long length)Returns anIndexInputslice starting at the given offset with the given length.
-
-
-
Method Detail
-
openSlice
public abstract IndexInput openSlice(String sliceDescription, long offset, long length) throws IOException
Returns anIndexInputslice starting at the given offset with the given length.- Throws:
IOException
-
openFullSlice
@Deprecated public abstract IndexInput openFullSlice() throws IOException
Deprecated.Only for reading CFS files from 3.x indexes.Returns anIndexInputslice starting at offset 0 with a length equal to the length of the underlying file- Throws:
IOException
-
-