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, writeBytes
length
copyBytes, writeBytes, writeInt, writeLong, writeShort, writeString, writeStringSet, writeStringStringMap, writeVInt, writeVLong, writeZInt, writeZLong
public CachedIndexOutput(BlockDirectory directory, IndexOutput dest, int blockSize, String name, Cache cache, int bufferSize)
public void flushInternal() throws IOException
flushInternal
in class ReusedBufferedIndexOutput
IOException
public void closeInternal() throws IOException
closeInternal
in class ReusedBufferedIndexOutput
IOException
public void writeInternal(byte[] b, int offset, int length) throws IOException
ReusedBufferedIndexOutput
writeInternal
in class ReusedBufferedIndexOutput
b
- the array of bytes to writeoffset
- the offset in the array of bytes to writelength
- the number of bytes to writeIOException
public long getChecksum() throws IOException
getChecksum
in class IndexOutput
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.