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.CloseableAllows 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(java.lang.String sliceDescription, long offset, long length)Returns anIndexInputslice 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 anIndexInputslice 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 anIndexInputslice starting at offset 0 with a length equal to the length of the underlying file- Throws:
 java.io.IOException
 
 - 
 
 -