public abstract class Directory.IndexInputSlicer extends Object implements Closeable
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 and Description |
|---|
Directory.IndexInputSlicer() |
| Modifier and Type | Method and Description |
|---|---|
abstract IndexInput |
openFullSlice()
Returns an
IndexInput slice starting at offset 0 with a
length equal to the length of the underlying file |
abstract IndexInput |
openSlice(String sliceDescription,
long offset,
long length)
Returns an
IndexInput slice starting at the given offset with the given length. |
public abstract IndexInput openSlice(String sliceDescription, long offset, long length) throws IOException
IndexInput slice starting at the given offset with the given length.IOExceptionpublic abstract IndexInput openFullSlice() throws IOException
IndexInput slice starting at offset 0 with a
length equal to the length of the underlying fileIOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.