|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.store.DataInput
org.apache.lucene.store.IndexInput
org.apache.blur.store.buffer.ReusedBufferedIndexInput
public abstract class ReusedBufferedIndexInput
Base implementation class for buffered IndexInput
.
Field Summary | |
---|---|
static int |
BUFFER_SIZE
Default buffer size set to 1024 |
static int |
MERGE_BUFFER_SIZE
A buffer size for merges set to 8192, 4k in Lucene |
Constructor Summary | |
---|---|
ReusedBufferedIndexInput(String resourceDesc)
|
|
ReusedBufferedIndexInput(String resourceDesc,
int bufferSize)
Inits BufferedIndexInput with a specific bufferSize |
|
ReusedBufferedIndexInput(String resourceDesc,
org.apache.lucene.store.IOContext context)
|
Method Summary | |
---|---|
static int |
bufferSize(org.apache.lucene.store.IOContext context)
Returns default buffer sizes for the given IOContext |
ReusedBufferedIndexInput |
clone()
|
void |
close()
|
int |
getBufferSize()
Returns buffer size. |
long |
getFilePointer()
|
byte |
readByte()
|
void |
readBytes(byte[] b,
int offset,
int len)
|
void |
readBytes(byte[] b,
int offset,
int len,
boolean useBuffer)
|
int |
readInt()
|
long |
readLong()
|
short |
readShort()
|
int |
readVInt()
|
long |
readVLong()
|
void |
seek(long pos)
|
Methods inherited from class org.apache.lucene.store.IndexInput |
---|
length, toString |
Methods inherited from class org.apache.lucene.store.DataInput |
---|
readString, readStringSet, readStringStringMap |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MERGE_BUFFER_SIZE
public static final int BUFFER_SIZE
Constructor Detail |
---|
public ReusedBufferedIndexInput(String resourceDesc)
public ReusedBufferedIndexInput(String resourceDesc, org.apache.lucene.store.IOContext context)
public ReusedBufferedIndexInput(String resourceDesc, int bufferSize)
Method Detail |
---|
public final void close() throws IOException
close
in interface Closeable
close
in class org.apache.lucene.store.IndexInput
IOException
public final byte readByte() throws IOException
readByte
in class org.apache.lucene.store.DataInput
IOException
public final int getBufferSize()
public final void readBytes(byte[] b, int offset, int len) throws IOException
readBytes
in class org.apache.lucene.store.DataInput
IOException
public final void readBytes(byte[] b, int offset, int len, boolean useBuffer) throws IOException
readBytes
in class org.apache.lucene.store.DataInput
IOException
public final short readShort() throws IOException
readShort
in class org.apache.lucene.store.DataInput
IOException
public final int readInt() throws IOException
readInt
in class org.apache.lucene.store.DataInput
IOException
public final long readLong() throws IOException
readLong
in class org.apache.lucene.store.DataInput
IOException
public final int readVInt() throws IOException
readVInt
in class org.apache.lucene.store.DataInput
IOException
public final long readVLong() throws IOException
readVLong
in class org.apache.lucene.store.DataInput
IOException
public final long getFilePointer()
getFilePointer
in class org.apache.lucene.store.IndexInput
public final void seek(long pos) throws IOException
seek
in class org.apache.lucene.store.IndexInput
IOException
public ReusedBufferedIndexInput clone()
clone
in class org.apache.lucene.store.IndexInput
public static int bufferSize(org.apache.lucene.store.IOContext context)
IOContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |