public class DocumentReference
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.io.File |
file
The file where the referenced document is stored.
|
double |
length
The length of the corresponding Document vector.
|
Constructor and Description |
---|
DocumentReference(FileDocument doc)
Create a reference to this document, initializing its length to 0
|
DocumentReference(java.io.File file,
double length) |
Modifier and Type | Method and Description |
---|---|
Document |
getDocument(short docType,
boolean stem)
Get the full Document for this Document reference by recreating it
with the given docType and stemming
|
java.lang.String |
toString() |
public java.io.File file
public double length
public DocumentReference(java.io.File file, double length)
public DocumentReference(FileDocument doc)
public java.lang.String toString()
toString
in class java.lang.Object
public Document getDocument(short docType, boolean stem)