Package org.apache.lucene.store
Class Directory.IndexInputSlicer
- java.lang.Object
-
- org.apache.lucene.store.Directory.IndexInputSlicer
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- Directory
public abstract class Directory.IndexInputSlicer extends java.lang.Object implements java.io.Closeable
Allows to create one or more slicedIndexInput
instances from a single file handle. SomeDirectory
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 Constructor Description IndexInputSlicer()
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description abstract IndexInput
openFullSlice()
Deprecated.Only for reading CFS files from 3.x indexes.abstract IndexInput
openSlice(java.lang.String sliceDescription, long offset, long length)
Returns anIndexInput
slice starting at the given offset with the given length.
-
-
-
Method Detail
-
openSlice
public abstract IndexInput openSlice(java.lang.String sliceDescription, long offset, long length) throws java.io.IOException
Returns anIndexInput
slice starting at the given offset with the given length.- Throws:
java.io.IOException
-
openFullSlice
@Deprecated public abstract IndexInput openFullSlice() throws java.io.IOException
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:
java.io.IOException
-
-