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() |
long |
getChecksum() |
void |
writeInternal(byte[] b,
int offset,
int length)
Expert: implements buffer flushing to cache.
|
close, flush, getBufferStart, getFilePointer, writeByte, writeByteslengthcopyBytes, writeBytes, writeInt, writeLong, writeShort, writeString, writeStringSet, writeStringStringMap, writeVInt, writeVLong, writeZInt, writeZLongpublic 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 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 IndexOutputIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.