Package generic.lsh.vector
Interface LSHVector
- All Known Implementing Classes:
LSHCosineVector,LSHCosineVectorAccum
public interface LSHVector
-
Method Summary
Modifier and TypeMethodDescriptionlongdoublecompare(LSHVector op2, VectorCompare data) voidcompareCounts(LSHVector op2, VectorCompare data) doublecompareDetail(LSHVector op2, StringBuilder buf) getEntry(int i) doubleintvoidrestoreBase64(Reader input, char[] buffer, WeightFactory wfactory, IDFLookup idflookup, int[] decode) voidrestoreSQL(String sql, WeightFactory weightFactory, IDFLookup idfLookup) voidrestoreXml(XmlPullParser parser, WeightFactory weightFactory, IDFLookup idfLookup) voidsaveBase64(StringBuilder buffer, char[] encoder) saveSQL()void
-
Method Details
-
numEntries
int numEntries() -
getEntry
-
getEntries
HashEntry[] getEntries() -
getLength
double getLength() -
compare
-
compareCounts
-
compareDetail
-
saveXml
- Throws:
IOException
-
saveSQL
String saveSQL() -
saveBase64
-
restoreXml
-
restoreSQL
- Throws:
IOException
-
restoreBase64
void restoreBase64(Reader input, char[] buffer, WeightFactory wfactory, IDFLookup idflookup, int[] decode) throws IOException - Throws:
IOException
-
calcUniqueHash
long calcUniqueHash()
-