org.apache.solr.store.blockcache
public class CachedIndexOutput extends ReusedBufferedIndexOutput
buffer, BUFFER_SIZE| Constructor and Description |
|---|
CachedIndexOutput(BlockDirectory directory,
IndexOutput dest,
int blockSize,
String name,
Cache cache,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeInternal() |
void |
flushInternal() |
void |
seekInternal(long pos) |
void |
writeInternal(byte[] b,
int offset,
int length)
Expert: implements buffer flushing to cache.
|
clone, close, flush, getBufferStart, getFilePointer, length, seek, writeByte, writeBytessetLengthcopyBytes, writeBytes, writeInt, writeLong, writeShort, writeString, writeStringSet, writeStringStringMap, writeVInt, writeVLongpublic CachedIndexOutput(BlockDirectory directory, IndexOutput dest, int blockSize, String name, Cache cache, int bufferSize)
public void flushInternal()
throws IOException
flushInternal in class ReusedBufferedIndexOutputIOExceptionpublic void closeInternal()
throws IOException
closeInternal in class ReusedBufferedIndexOutputIOExceptionpublic void seekInternal(long pos)
throws IOException
seekInternal 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 writeIOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.