|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.collection.Indexable
edu.umd.cloud9.collection.line.TextDocument
public class TextDocument
Object representing a simple document. Document is encoded as docid followed by tab followed by document contents. Document contents cannot contain embedded tabs or newlines. The entire document is encoded on a single line.
| Constructor Summary | |
|---|---|
TextDocument()
Creates an empty TrecDocument object. |
|
| Method Summary | |
|---|---|
String |
getContent()
Returns the content of the document. |
String |
getDocid()
Returns the globally-unique String identifier of the document within the collection. |
static void |
readDocument(TextDocument doc,
String s)
|
void |
readFields(DataInput in)
Serializes this object. |
void |
write(DataOutput out)
Deserializes this object. |
| Methods inherited from class edu.umd.cloud9.collection.Indexable |
|---|
getDisplayContent, getDisplayContentType |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextDocument()
TrecDocument object.
| Method Detail |
|---|
public void write(DataOutput out)
throws IOException
IOException
public void readFields(DataInput in)
throws IOException
IOExceptionpublic String getDocid()
Indexable
getDocid in class Indexablepublic String getContent()
Indexable
getContent in class Indexable
public static void readDocument(TextDocument doc,
String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||