public class CachedIndexOutput extends ReusedBufferedIndexOutput
buffer, BUFFER_SIZE| Constructor and Description |
|---|
CachedIndexOutput(BlockDirectory directory,
org.apache.lucene.store.IndexOutput dest,
int blockSize,
String name,
Cache cache,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeInternal() |
long |
getChecksum() |
void |
writeInternal(byte[] b,
int offset,
int length)
Expert: implements buffer flushing to cache.
|
close, flushBufferToCache, getBufferStart, getFilePointer, writeByte, writeBytespublic CachedIndexOutput(BlockDirectory directory, org.apache.lucene.store.IndexOutput dest, int blockSize, String name, Cache cache, int bufferSize)
public void closeInternal()
throws IOException
closeInternal in class ReusedBufferedIndexOutputIOExceptionpublic void writeInternal(byte[] b,
int offset,
int length)
throws IOException
ReusedBufferedIndexOutputwriteInternal in class ReusedBufferedIndexOutputb - the array of bytes to writeoffset - the offset in the array of bytes to writelength - the number of bytes to writeIOExceptionpublic long getChecksum()
throws IOException
getChecksum in class org.apache.lucene.store.IndexOutputIOExceptionCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.