org.apache.nutch.clustering.carrot2
Class NutchDocument

java.lang.Object
  extended by org.carrot2.util.PropertyProviderBase
      extended by org.carrot2.core.clustering.RawDocumentBase
          extended by org.apache.nutch.clustering.carrot2.NutchDocument
All Implemented Interfaces:
Serializable, org.carrot2.core.clustering.RawDocument, org.carrot2.util.PropertyProvider

public class NutchDocument
extends org.carrot2.core.clustering.RawDocumentBase

An adapter class that implements RawDocument required for Carrot2.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.carrot2.core.clustering.RawDocument
PROPERTY_CONTENT_READER, PROPERTY_LANGUAGE, PROPERTY_SNIPPET, PROPERTY_SOURCES, PROPERTY_TITLE, PROPERTY_URL
 
Constructor Summary
NutchDocument(int id, HitDetails details, String summary, String defaultLanguage)
          Creates a new document with the given id, summary and wrapping a details hit details.
 
Method Summary
 Object getId()
           
 
Methods inherited from class org.carrot2.core.clustering.RawDocumentBase
getScore, getSnippet, getTitle, getUrl, toString
 
Methods inherited from class org.carrot2.util.PropertyProviderBase
clonePropertiesFrom, getDoubleProperty, getIntProperty, getProperties, getProperty, getPropertyHelper, setDoubleProperty, setIntProperty, setProperties, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.carrot2.core.clustering.RawDocument
getProperty, setProperty
 

Constructor Detail

NutchDocument

public NutchDocument(int id,
                     HitDetails details,
                     String summary,
                     String defaultLanguage)
Creates a new document with the given id, summary and wrapping a details hit details.

Method Detail

getId

public Object getId()


Copyright © 2006 The Apache Software Foundation