edu.umd.cloud9.webgraph.data
Class IndexableAnchorText

java.lang.Object
  extended by edu.umd.cloud9.collection.Indexable
      extended by edu.umd.cloud9.webgraph.data.IndexableAnchorText
All Implemented Interfaces:
Writable

public class IndexableAnchorText
extends Indexable

An Indexable implementation for anchor text/web graph collections, used in generating ForwardIndex.

Author:
Nima Asadi

Field Summary
static StringBuilder content
           
 
Constructor Summary
IndexableAnchorText()
           
 
Method Summary
 String getContent()
          Returns the content of the document.
 String getDisplayContentType()
          Returns the type of the display content, per IANA MIME Media Type (e.g., "text/html").
 String getDocid()
          Returns the globally-unique String identifier of the document within the collection.
 void process(ArrayListWritable<AnchorText> anchors)
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class edu.umd.cloud9.collection.Indexable
getDisplayContent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

public static StringBuilder content
Constructor Detail

IndexableAnchorText

public IndexableAnchorText()
Method Detail

process

public void process(ArrayListWritable<AnchorText> anchors)

getContent

public String getContent()
Description copied from class: Indexable
Returns the content of the document.

Specified by:
getContent in class Indexable
Returns:
content of the document

getDisplayContentType

public String getDisplayContentType()
Description copied from class: Indexable
Returns the type of the display content, per IANA MIME Media Type (e.g., "text/html"). See http://www.iana.org/assignments/media-types/index.html

Overrides:
getDisplayContentType in class Indexable
Returns:
IANA MIME Media Type

getDocid

public String getDocid()
Description copied from class: Indexable
Returns the globally-unique String identifier of the document within the collection.

Specified by:
getDocid in class Indexable
Returns:
docid of the document

readFields

public void readFields(DataInput in)
                throws IOException
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Throws:
IOException