org.apache.nutch.clustering.carrot2
Class NutchDocument

java.lang.Object
  extended by com.dawidweiss.carrot.core.local.clustering.RawDocumentBase
      extended by org.apache.nutch.clustering.carrot2.NutchDocument
All Implemented Interfaces:
com.dawidweiss.carrot.core.local.clustering.RawDocument, com.stachoodev.util.common.PropertyProvider

public class NutchDocument
extends com.dawidweiss.carrot.core.local.clustering.RawDocumentBase

An adapter class that implements RawDocument required for Carrot2.

Version:
$Id: NutchDocument.java,v 1.2 2004/08/10 00:18:43 johnnx Exp $
Author:
Dawid Weiss

Field Summary
 
Fields inherited from class com.dawidweiss.carrot.core.local.clustering.RawDocumentBase
propertyHelper
 
Fields inherited from interface com.dawidweiss.carrot.core.local.clustering.RawDocument
PROPERTY_CONTENT_READER, PROPERTY_LANGUAGE, PROPERTY_SNIPPET, 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 com.dawidweiss.carrot.core.local.clustering.RawDocumentBase
getDoubleProperty, getIntProperty, getProperty, getScore, getSnippet, getTitle, getUrl, setDoubleProperty, setIntProperty, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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