|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.deduping.metrics.StringReference
A simple data structure for storing a reference to a document file that includes information on the length of its document vector. The goal is to have a lightweight object to store in an inverted index without having to store an entire Document object.
Field Summary | |
double |
m_length
The length of the corresponding Document vector. |
java.lang.String |
m_string
The referenced string. |
HashMapVector |
m_vector
The corresponding HashMapVector |
Constructor Summary | |
StringReference(java.lang.String string,
HashMapVector vector)
Create a reference to this document, initializing its length to 0 |
|
StringReference(java.lang.String string,
HashMapVector vector,
double length)
|
Method Summary | |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.String m_string
public HashMapVector m_vector
public double m_length
Constructor Detail |
public StringReference(java.lang.String string, HashMapVector vector, double length)
public StringReference(java.lang.String string, HashMapVector vector)
Method Detail |
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |