java.lang.Object | ||
↳ | org.apache.lucene.store.IndexInput | |
↳ | org.apache.lucene.store.BufferedIndexInput |
Known Direct Subclasses |
Known Indirect Subclasses |
Base implementation class for buffered IndexInput
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | BUFFER_SIZE | Default buffer size |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
buffer |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Inits BufferedIndexInput with a specific bufferSize
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a clone of this stream.
| |||||||||||
Returns buffer size.
| |||||||||||
Returns the current position in this file, where the next read will
occur.
| |||||||||||
Reads and returns a single byte.
| |||||||||||
Reads a specified number of bytes into an array at the
specified offset with control over whether the read
should be buffered (callers who have their own buffer
should pass in "false" for useBuffer).
| |||||||||||
Reads a specified number of bytes into an array at the specified offset.
| |||||||||||
Sets current position in this file, where the next read will occur.
| |||||||||||
Change the buffer size used by this IndexInput
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Expert: implements buffer refill.
| |||||||||||
Expert: implements seek.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.store.IndexInput
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
|
Default buffer size
Inits BufferedIndexInput with a specific bufferSize
Returns a clone of this stream.
Clones 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.
Returns buffer size. @see #setBufferSize
Returns the current position in this file, where the next read will occur.
Reads a specified number of bytes into an array at the
specified offset with control over whether the read
should be buffered (callers who have their own buffer
should pass in "false" for useBuffer). Currently only
BufferedIndexInput
respects this parameter.
b | the array to read bytes into |
---|---|
offset | the offset in the array to start storing bytes |
len | the number of bytes to read |
useBuffer | set to false if the caller will handle buffering. |
IOException |
---|
Reads a specified number of bytes into an array at the specified offset.
b | the array to read bytes into |
---|---|
offset | the offset in the array to start storing bytes |
len | the number of bytes to read |
IOException |
---|
Sets current position in this file, where the next read will occur.
IOException |
---|
Change the buffer size used by this IndexInput
Expert: implements buffer refill. Reads bytes from the current position in the input.
b | the array to read bytes into |
---|---|
offset | the offset in the array to start storing bytes |
length | the number of bytes to read |
IOException |
---|
Expert: implements seek. Sets current position in this file, where the
next readInternal(byte[], int, int)
will occur.
IOException |
---|