gov.llnl.ontology.text.hbase
Class DynamicDocument

java.lang.Object
  extended by gov.llnl.ontology.text.hbase.DynamicDocument
All Implemented Interfaces:
Document

public class DynamicDocument
extends Object
implements Document

Author:
Keith Stevens

Constructor Summary
DynamicDocument(org.apache.hadoop.hbase.client.Result row, String corpusNameColumn, String rawTextColumn, String originalTextColumn, String keyColumn, String idColumn, String titleColumn, String categoriesColumn)
           
 
Method Summary
 Set<String> categories()
          Returns the set of categories that this document has, if any.
 long id()
          Returns a unique identifier for this document.
 String key()
          Returns a string name of this document.
 String originalText()
          Returns the original, uncleaned text.
 String rawText()
          Returns the raw text of the corpus.
 String sourceCorpus()
          Returns the name of the source corpus.
 String title()
          Returns the title of this document, if any exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicDocument

public DynamicDocument(org.apache.hadoop.hbase.client.Result row,
                       String corpusNameColumn,
                       String rawTextColumn,
                       String originalTextColumn,
                       String keyColumn,
                       String idColumn,
                       String titleColumn,
                       String categoriesColumn)
Method Detail

sourceCorpus

public String sourceCorpus()
Returns the name of the source corpus.

Specified by:
sourceCorpus in interface Document

rawText

public String rawText()
Returns the raw text of the corpus.

Specified by:
rawText in interface Document

originalText

public String originalText()
Returns the original, uncleaned text.

Specified by:
originalText in interface Document

key

public String key()
Returns a string name of this document.

Specified by:
key in interface Document

id

public long id()
Returns a unique identifier for this document.

Specified by:
id in interface Document

title

public String title()
Returns the title of this document, if any exists.

Specified by:
title in interface Document

categories

public Set<String> categories()
Returns the set of categories that this document has, if any.

Specified by:
categories in interface Document


Copyright © 2010-2011. All Rights Reserved.