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, writeBytes
public 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 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 org.apache.lucene.store.IndexOutput
IOException
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.