| org.apache.lucene.store.ConfigurableBufferedIndexOutput
All known Subclasses: org.apache.lucene.store.jdbc.index.JdbcBufferedIndexOutput,
ConfigurableBufferedIndexOutput | abstract public class ConfigurableBufferedIndexOutput extends IndexOutput (Code) | | A simple base class that performs index output memory based buffering. The buffer size if configurable.
author: kimchy |
Method Summary | |
public void | close() Closes this stream to further operations. | public void | flush() Forces any buffered output to be written. | abstract protected void | flushBuffer(byte[] b, int offset, int len) Expert: implements buffer write. | public long | getFilePointer() Returns the current position in this file, where the next write will
occur. | protected void | initBuffer(int bufferSize) | abstract public long | length() The number of bytes in the file. | public void | seek(long pos) Sets current position in this file, where the next write will occur. | public void | writeByte(byte b) Writes a single byte. | public void | writeBytes(byte[] b, int offset, int length) Writes an array of bytes. |
DEFAULT_BUFFER_SIZE | final public static int DEFAULT_BUFFER_SIZE(Code) | | |
bufferSize | protected int bufferSize(Code) | | |
close | public void close() throws IOException(Code) | | Closes this stream to further operations.
|
flush | public void flush() throws IOException(Code) | | Forces any buffered output to be written.
|
flushBuffer | abstract protected void flushBuffer(byte[] b, int offset, int len) throws IOException(Code) | | Expert: implements buffer write. Writes bytes at the current position in
the output.
Parameters: b - the bytes to write Parameters: offset - the offset in the byte array Parameters: len - the number of bytes to write |
initBuffer | protected void initBuffer(int bufferSize)(Code) | | |
length | abstract public long length() throws IOException(Code) | | The number of bytes in the file.
|
writeByte | public void writeByte(byte b) throws IOException(Code) | | Writes a single byte.
See Also: IndexInput.readByte |
writeBytes | public void writeBytes(byte[] b, int offset, int length) throws IOException(Code) | | Writes an array of bytes.
Parameters: b - the bytes to write Parameters: length - the number of bytes to write See Also: IndexInput.readBytes(byte[]intint) |
|
|