|
||||||||||
| 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.db.DbIndexInput
public class DbIndexInput
| Field Summary | |
|---|---|
protected Block |
block
|
protected DbDirectory |
directory
|
protected File |
file
|
protected long |
length
|
protected long |
position
|
| Constructor Summary | |
|---|---|
protected |
DbIndexInput(DbDirectory 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 |
|---|
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 DbDirectory directory
protected Block block
protected File file
| Constructor Detail |
|---|
protected DbIndexInput(DbDirectory directory,
String name)
throws IOException
IOException| Method Detail |
|---|
public 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 IOException
IndexInput
close in interface Closeableclose in class IndexInputIOExceptionpublic long length()
IndexInput
length in class IndexInput
public byte readByte()
throws IOException
IndexInput
readByte in class IndexInputIOExceptionIndexOutput.writeByte(byte)
public void readBytes(byte[] b,
int offset,
int len)
throws 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
IOExceptionIndexOutput.writeBytes(byte[],int)
public void seek(long pos)
throws IOException
IndexInput
seek in class IndexInputIOExceptionIndexInput.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 | |||||||||