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()
Deprecated.
Only for reading CFS files from 3.x indexes.
|
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.IOException
@Deprecated public abstract IndexInput openFullSlice() throws IOException
IndexInput
slice starting at offset 0 with a
length equal to the length of the underlying fileIOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.