org.apache.solr.store.blockcache
Class ReusedBufferedIndexOutput
java.lang.Object
org.apache.lucene.store.DataOutput
org.apache.lucene.store.IndexOutput
org.apache.solr.store.blockcache.ReusedBufferedIndexOutput
- All Implemented Interfaces:
- Closeable
- Direct Known Subclasses:
- CachedIndexOutput
public abstract class ReusedBufferedIndexOutput
- extends IndexOutput
BUFFER_SIZE
public static final int BUFFER_SIZE
- See Also:
- Constant Field Values
buffer
protected byte[] buffer
ReusedBufferedIndexOutput
public ReusedBufferedIndexOutput()
ReusedBufferedIndexOutput
public ReusedBufferedIndexOutput(int bufferSize)
getBufferStart
protected long getBufferStart()
flushInternal
protected abstract void flushInternal()
throws IOException
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in class IndexOutput
- Throws:
IOException
closeInternal
protected abstract void closeInternal()
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class IndexOutput
- Throws:
IOException
getFilePointer
public long getFilePointer()
- Specified by:
getFilePointer
in class IndexOutput
seekInternal
protected abstract void seekInternal(long pos)
throws IOException
- Throws:
IOException
seek
public void seek(long pos)
throws IOException
- Specified by:
seek
in class IndexOutput
- Throws:
IOException
length
public long length()
throws IOException
- Specified by:
length
in class IndexOutput
- Throws:
IOException
writeByte
public void writeByte(byte b)
throws IOException
- Specified by:
writeByte
in class DataOutput
- Throws:
IOException
writeInternal
protected abstract void writeInternal(byte[] b,
int offset,
int length)
throws IOException
- 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
writeBytes
public void writeBytes(byte[] b,
int offset,
int length)
throws IOException
- Specified by:
writeBytes
in class DataOutput
- Throws:
IOException
clone
protected Object clone()
throws CloneNotSupportedException
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.