|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.store.IndexInput org.apache.lucene.store.je.JEIndexInput
public class JEIndexInput
Port of Andi Vajda's DbDirectory to Java Edition of Berkeley Database
Field Summary | |
---|---|
protected Block |
block
|
protected JEDirectory |
directory
|
protected File |
file
|
protected long |
length
|
protected long |
position
|
Fields inherited from class org.apache.lucene.store.IndexInput |
---|
copyBuf |
Constructor Summary | |
---|---|
protected |
JEIndexInput(JEDirectory directory,
String name)
|
Method Summary | |
---|---|
Object |
clone()
Returns a clone of this stream. |
void |
close()
Closes the stream to further operations. |
long |
getFilePointer()
Returns the current position in this file, where the next read will occur. |
long |
length()
The number of bytes in the file. |
byte |
readByte()
Reads and returns a single byte. |
void |
readBytes(byte[] b,
int offset,
int len)
Reads a specified number of bytes into an array at the specified offset. |
void |
seek(long pos)
Sets current position in this file, where the next read will occur. |
Methods inherited from class org.apache.lucene.store.IndexInput |
---|
copyBytes, readBytes, readChars, readInt, readLong, readString, readStringStringMap, readVInt, readVLong, setModifiedUTF8StringsMode, skipChars |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long position
protected long length
protected JEDirectory directory
protected Block block
protected File file
Constructor Detail |
---|
protected JEIndexInput(JEDirectory directory, String name) throws IOException
IOException
Method Detail |
---|
public Object clone()
IndexInput
Clones of a stream access the same data, and are positioned at the same point as the stream they were cloned from.
Expert: Subclasses must ensure that clones may be positioned at different points in the input from each other and from the stream they were cloned from.
clone
in class IndexInput
public void close() throws IOException
IndexInput
close
in interface Closeable
close
in class IndexInput
IOException
public long length()
IndexInput
length
in class IndexInput
public byte readByte() throws IOException
IndexInput
readByte
in class IndexInput
IOException
IndexOutput.writeByte(byte)
public void readBytes(byte[] b, int offset, int len) throws IOException
IndexInput
readBytes
in class IndexInput
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslen
- the number of bytes to read
IOException
IndexOutput.writeBytes(byte[],int)
public void seek(long pos) throws IOException
IndexInput
seek
in class IndexInput
IOException
IndexInput.getFilePointer()
public long getFilePointer()
IndexInput
getFilePointer
in class IndexInput
IndexInput.seek(long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |