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 proximitiesIOException
public void closeProx()
Proximities
closeProx
in interface Proximities
public void close() throws IOException
IOException
public void rewind() throws IOException
IOException
public Proximities open(long offset) throws IOException
IOException
public int readProx() throws IOException
readProx
in interface Proximities
IOException
public int leftProx()
leftProx
in interface Proximities
public int readProx(int[] prox, int offset, int len) throws IOException
Proximities
readProx
in interface Proximities
prox
- the bufferoffset
- first cell to filllen
- how many cell are readIOException
Copyright © 2016 Egothor. All Rights Reserved.