public class ProximitiesFileIn extends Object implements Proximities
| Constructor and Description |
|---|
ProximitiesFileIn(String filename)
Constructor for the ProximitiesFileIn object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this file.
|
void |
closeProx()
Close this list and release resources.
|
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() |
public ProximitiesFileIn(String filename) throws IOException
filename - the file holding the proximitiesIOExceptionpublic void closeProx()
ProximitiescloseProx in interface Proximitiespublic void close()
throws IOException
IOExceptionpublic void rewind()
throws IOException
IOExceptionpublic Proximities open(long offset) throws IOException
IOExceptionpublic int readProx()
throws IOException
readProx in interface ProximitiesIOExceptionpublic int leftProx()
leftProx in interface Proximitiespublic int readProx(int[] prox,
int offset,
int len)
throws IOException
ProximitiesreadProx in interface Proximitiesprox - the bufferoffset - first cell to filllen - how many cell are readIOExceptionCopyright © 2016 Egothor. All Rights Reserved.