|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
|
| Constructor Summary | |
|---|---|
protected |
JEIndexInput(JEDirectory directory,
java.lang.String name)
|
| Method Summary | |
|---|---|
java.lang.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 |
|---|
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,
java.lang.String name)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.lang.Object clone()
IndexInputClones 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 java.io.IOException
IndexInput
close in class IndexInputjava.io.IOExceptionpublic long length()
IndexInput
length in class IndexInput
public byte readByte()
throws java.io.IOException
IndexInput
readByte in class IndexInputjava.io.IOExceptionIndexOutput.writeByte(byte)
public void readBytes(byte[] b,
int offset,
int len)
throws java.io.IOException
IndexInput
readBytes in class IndexInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to read
java.io.IOExceptionIndexOutput.writeBytes(byte[],int)
public void seek(long pos)
throws java.io.IOException
IndexInput
seek in class IndexInputjava.io.IOExceptionIndexInput.getFilePointer()public long getFilePointer()
IndexInput
getFilePointer in class IndexInputIndexInput.seek(long)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||