protected static class SimpleFSDirectory.SimpleFSIndexInput extends BufferedIndexInput
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SimpleFSDirectory.SimpleFSIndexInput.Descriptor |
| Modifier and Type | Field and Description |
|---|---|
protected int |
chunkSize |
protected SimpleFSDirectory.SimpleFSIndexInput.Descriptor |
file |
buffer, BUFFER_SIZE| Constructor and Description |
|---|
SimpleFSIndexInput(java.io.File path)
Deprecated.
Please use ctor taking chunkSize
|
SimpleFSIndexInput(java.io.File path,
int bufferSize)
Deprecated.
Please use ctor taking chunkSize
|
SimpleFSIndexInput(java.io.File path,
int bufferSize,
int chunkSize) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns a clone of this stream.
|
void |
close()
Closes the stream to further operations.
|
long |
length()
The number of bytes in the file.
|
protected void |
readInternal(byte[] b,
int offset,
int len)
IndexInput methods
|
protected void |
seekInternal(long position)
Expert: implements seek.
|
getBufferSize, getFilePointer, newBuffer, readByte, readBytes, readBytes, seek, setBufferSizereadChars, readInt, readLong, readString, readStringStringMap, readVInt, readVLong, setModifiedUTF8StringsMode, skipCharsprotected final SimpleFSDirectory.SimpleFSIndexInput.Descriptor file
protected final int chunkSize
public SimpleFSIndexInput(java.io.File path)
throws java.io.IOException
java.io.IOExceptionpublic SimpleFSIndexInput(java.io.File path,
int bufferSize)
throws java.io.IOException
java.io.IOExceptionpublic SimpleFSIndexInput(java.io.File path,
int bufferSize,
int chunkSize)
throws java.io.IOException
java.io.IOExceptionprotected void readInternal(byte[] b,
int offset,
int len)
throws java.io.IOException
readInternal in class BufferedIndexInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readjava.io.IOExceptionpublic void close()
throws java.io.IOException
IndexInputclose in class IndexInputjava.io.IOExceptionprotected void seekInternal(long position)
BufferedIndexInputBufferedIndexInput.readInternal(byte[],int,int) will occur.seekInternal in class BufferedIndexInputBufferedIndexInput.readInternal(byte[],int,int)public long length()
IndexInputlength in class IndexInputpublic java.lang.Object clone()
IndexInputClones of a stream access the same data, and are positioned at the same point as the stream they were cloned from.
Expert: Subclasses must ensure that clones may be positioned at different points in the input from each other and from the stream they were cloned from.
clone in class BufferedIndexInputCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.