|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICVFinder
Interface for searching for candidate vectors in the given candidate-vectors-file.
Method Summary | |
---|---|
void |
close()
Closes underlying files, streams, etc. |
long |
find(int[] cv)
Finds the index for the given candidate vector. |
long[] |
find(int[][] cvs)
Finds indexes for the given candidate vectors |
long |
getNumCVs()
Gets number of candidate vectors in a file |
int |
getNumElemsPerCV()
Gets number of elements per candidate vector |
boolean |
isPredicateOK()
Call this method immediately after calling readCV to find out if the read vector passes predicate check or not |
int[] |
readCV(long idx)
Reads idx-th candidate vector from file |
Method Detail |
---|
long getNumCVs()
int getNumElemsPerCV()
int[] readCV(long idx) throws IOException
idx
- index of candidate vector in the file
IOException
- if an I/O error occursboolean isPredicateOK()
long find(int[] cv) throws IOException
cv
- candidate vector to search for
IOException
- if an I/O error occurslong[] find(int[][] cvs) throws IOException
cvs
- candidate vectors to search for
IOException
- if an I/O error occursvoid close() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |