org.apache.solr.store.blockcache
Class CachedIndexOutput
java.lang.Object
org.apache.lucene.store.DataOutput
org.apache.lucene.store.IndexOutput
org.apache.solr.store.blockcache.ReusedBufferedIndexOutput
org.apache.solr.store.blockcache.CachedIndexOutput
- All Implemented Interfaces:
- Closeable
public class CachedIndexOutput
- extends ReusedBufferedIndexOutput
CachedIndexOutput
public CachedIndexOutput(BlockDirectory directory,
IndexOutput dest,
int blockSize,
String name,
Cache cache,
int bufferSize)
flushInternal
public void flushInternal()
throws IOException
- Specified by:
flushInternal
in class ReusedBufferedIndexOutput
- Throws:
IOException
closeInternal
public void closeInternal()
throws IOException
- Specified by:
closeInternal
in class ReusedBufferedIndexOutput
- Throws:
IOException
seekInternal
public void seekInternal(long pos)
throws IOException
- Specified by:
seekInternal
in class ReusedBufferedIndexOutput
- 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.
- Specified by:
writeInternal
in class ReusedBufferedIndexOutput
- 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 © 2000-2013 Apache Software Foundation. All Rights Reserved.