public abstract class ReusedBufferedIndexOutput
extends org.apache.lucene.store.IndexOutput
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buffer |
static int |
BUFFER_SIZE |
| Constructor and Description |
|---|
ReusedBufferedIndexOutput() |
ReusedBufferedIndexOutput(int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract void |
closeInternal() |
void |
flush() |
protected abstract void |
flushInternal() |
protected long |
getBufferStart() |
long |
getFilePointer() |
void |
writeByte(byte b) |
void |
writeBytes(byte[] b,
int offset,
int length) |
protected abstract void |
writeInternal(byte[] b,
int offset,
int length)
Expert: implements buffer flushing to cache.
|
public static final int BUFFER_SIZE
protected byte[] buffer
public ReusedBufferedIndexOutput()
public ReusedBufferedIndexOutput(int bufferSize)
protected long getBufferStart()
protected abstract void flushInternal()
throws IOException
IOExceptionpublic void flush()
throws IOException
flush in class org.apache.lucene.store.IndexOutputIOExceptionprotected abstract void closeInternal()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.lucene.store.IndexOutputIOExceptionpublic long getFilePointer()
getFilePointer in class org.apache.lucene.store.IndexOutputpublic void writeByte(byte b)
throws IOException
writeByte in class org.apache.lucene.store.DataOutputIOExceptionprotected abstract void writeInternal(byte[] b,
int offset,
int length)
throws IOException
b - the array of bytes to writeoffset - the offset in the array of bytes to writelength - the number of bytes to writeIOExceptionpublic void writeBytes(byte[] b,
int offset,
int length)
throws IOException
writeBytes in class org.apache.lucene.store.DataOutputIOExceptionCopyright © 2000–2014 The Apache Software Foundation. All rights reserved.