Package generic.lsh.vector
Interface LSHVector
- All Known Implementing Classes:
LSHCosineVector
,LSHCosineVectorAccum
public interface LSHVector
-
Method Summary
Modifier and TypeMethodDescriptionlong
double
compare
(LSHVector op2, VectorCompare data) void
compareCounts
(LSHVector op2, VectorCompare data) double
compareDetail
(LSHVector op2, StringBuilder buf) getEntry
(int i) double
int
void
restoreBase64
(Reader input, char[] buffer, WeightFactory wfactory, IDFLookup idflookup, int[] decode) void
restoreSQL
(String sql, WeightFactory weightFactory, IDFLookup idfLookup) void
restoreXml
(XmlPullParser parser, WeightFactory weightFactory, IDFLookup idfLookup) void
saveBase64
(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()
-