|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.store.ProximitiesFileIn
public class ProximitiesFileIn
The ProximitiesFileIn object reads the term proximities from a file. The proximities are read by BitInputStream coding methods.
Constructor Summary | |
---|---|
ProximitiesFileIn(java.lang.String filename)
Constructor for the ProximitiesFileIn object. |
Method Summary | |
---|---|
void |
close()
Close this file. |
void |
closeProx()
Close this list and release resources. |
protected void |
finalize()
|
int |
leftProx()
Return the length of the proximities inverted list. |
Proximities |
open(long offset)
|
int |
readProx()
Read the proximities inverted list. |
int |
readProx(int[] prox,
int offset,
int len)
Read an inverted list of length greater than 1. |
void |
rewind()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProximitiesFileIn(java.lang.String filename) throws java.io.IOException
filename
- the file holding the proximities
java.io.IOException
Method Detail |
---|
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void closeProx()
Proximities
closeProx
in interface Proximities
public void close() throws java.io.IOException
java.io.IOException
public void rewind() throws java.io.IOException
java.io.IOException
public Proximities open(long offset) throws java.io.IOException
java.io.IOException
public int readProx() throws java.io.IOException
readProx
in interface Proximities
java.io.IOException
public int leftProx()
leftProx
in interface Proximities
public int readProx(int[] prox, int offset, int len) throws java.io.IOException
Proximities
readProx
in interface Proximities
prox
- the bufferoffset
- first cell to filllen
- how many cell are read
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |