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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract IndexInputDeprecated.Only for reading CFS files from 3.x indexes.abstract IndexInputReturns anIndexInputslice starting at the given offset with the given length.
- 
Constructor Details- 
IndexInputSlicerpublic IndexInputSlicer()
 
- 
- 
Method Details- 
openSlicepublic abstract IndexInput openSlice(String sliceDescription, long offset, long length) throws IOException Returns anIndexInputslice starting at the given offset with the given length.- Throws:
- IOException
 
- 
openFullSliceDeprecated.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
 
 
-