weka.deduping.metrics
Class StringReference

java.lang.Object
  extended byweka.deduping.metrics.StringReference

public class StringReference
extends java.lang.Object

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

m_string

public java.lang.String m_string
The referenced string.


m_vector

public HashMapVector m_vector
The corresponding HashMapVector


m_length

public double m_length
The length of the corresponding Document vector.

Constructor Detail

StringReference

public StringReference(java.lang.String string,
                       HashMapVector vector,
                       double length)

StringReference

public StringReference(java.lang.String string,
                       HashMapVector vector)
Create a reference to this document, initializing its length to 0

Method Detail

toString

public java.lang.String toString()