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 long
calcUniqueHash()
double
compare(LSHVector op2, VectorCompare data)
void
compareCounts(LSHVector op2, VectorCompare data)
double
compareDetail(LSHVector op2, java.lang.StringBuilder buf)
HashEntry[]
getEntries()
HashEntry
getEntry(int i)
double
getLength()
int
numEntries()
void
restoreBase64(java.io.Reader input, char[] buffer, WeightFactory wfactory, IDFLookup idflookup, int[] decode)
void
restoreSQL(java.lang.String sql, WeightFactory weightFactory, IDFLookup idfLookup)
void
restoreXml(XmlPullParser parser, WeightFactory weightFactory, IDFLookup idfLookup)
void
saveBase64(java.lang.StringBuilder buffer, char[] encoder)
java.lang.String
saveSQL()
void
saveXml(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()
-
-