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() |
long |
getChecksum() |
void |
writeInternal(byte[] b,
int offset,
int length)
Expert: implements buffer flushing to cache.
|
close, flushBufferToCache, getBufferStart, getFilePointer, writeByte, writeBytesgetName, toStringcopyBytes, writeBytes, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeVInt, writeVLong, writeZInt, writeZLongpublic CachedIndexOutput(BlockDirectory directory, 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 IndexOutputIOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.