org.apache.blur.store.blockcache
Class CachedIndexOutput
java.lang.Object
org.apache.lucene.store.DataOutput
org.apache.lucene.store.IndexOutput
org.apache.blur.store.buffer.ReusedBufferedIndexOutput
org.apache.blur.store.blockcache.CachedIndexOutput
- All Implemented Interfaces:
- Closeable
public class CachedIndexOutput
- extends ReusedBufferedIndexOutput
Methods inherited from class org.apache.lucene.store.IndexOutput |
setLength |
Methods inherited from class org.apache.lucene.store.DataOutput |
copyBytes, writeBytes, writeInt, writeLong, writeShort, writeString, writeStringSet, writeStringStringMap, writeVInt, writeVLong |
CachedIndexOutput
public CachedIndexOutput(BlockDirectory directory,
org.apache.lucene.store.IndexOutput dest,
int blockSize,
String name,
Cache cache,
int bufferSize)
flushInternal
public void flushInternal()
throws IOException
- Throws:
IOException
closeInternal
public void closeInternal()
throws IOException
- Throws:
IOException
seekInternal
public void seekInternal(long pos)
throws IOException
- Throws:
IOException
writeInternal
public void writeInternal(byte[] b,
int offset,
int length)
throws IOException
- Description copied from class:
ReusedBufferedIndexOutput
- Expert: implements buffer flushing to cache. Writes bytes to the current
position in the output.
- Parameters:
b
- the array of bytes to writeoffset
- the offset in the array of bytes to writelength
- the number of bytes to write
- Throws:
IOException
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.