Package generic.lsh.vector
Interface LSHVector
-
- All Known Implementing Classes:
LSHCosineVector,LSHCosineVectorAccum
public interface LSHVector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcalcUniqueHash()doublecompare(LSHVector op2, VectorCompare data)voidcompareCounts(LSHVector op2, VectorCompare data)doublecompareDetail(LSHVector op2, java.lang.StringBuilder buf)HashEntry[]getEntries()HashEntrygetEntry(int i)doublegetLength()intnumEntries()voidrestoreBase64(java.io.Reader input, char[] buffer, WeightFactory wfactory, IDFLookup idflookup, int[] decode)voidrestoreSQL(java.lang.String sql, WeightFactory weightFactory, IDFLookup idfLookup)voidrestoreXml(XmlPullParser parser, WeightFactory weightFactory, IDFLookup idfLookup)voidsaveBase64(java.lang.StringBuilder buffer, char[] encoder)java.lang.StringsaveSQL()voidsaveXml(java.io.Writer fwrite)
-
-
-
Method Detail
-
numEntries
int numEntries()
-
getEntry
HashEntry getEntry(int i)
-
getEntries
HashEntry[] getEntries()
-
getLength
double getLength()
-
compare
double compare(LSHVector op2, VectorCompare data)
-
compareCounts
void compareCounts(LSHVector op2, VectorCompare data)
-
compareDetail
double compareDetail(LSHVector op2, java.lang.StringBuilder buf)
-
saveXml
void saveXml(java.io.Writer fwrite) throws java.io.IOException- Throws:
java.io.IOException
-
saveSQL
java.lang.String saveSQL()
-
saveBase64
void saveBase64(java.lang.StringBuilder buffer, char[] encoder)
-
restoreXml
void restoreXml(XmlPullParser parser, WeightFactory weightFactory, IDFLookup idfLookup)
-
restoreSQL
void restoreSQL(java.lang.String sql, WeightFactory weightFactory, IDFLookup idfLookup) throws java.io.IOException- Throws:
java.io.IOException
-
restoreBase64
void restoreBase64(java.io.Reader input, char[] buffer, WeightFactory wfactory, IDFLookup idflookup, int[] decode) throws java.io.IOException- Throws:
java.io.IOException
-
calcUniqueHash
long calcUniqueHash()
-
-