org.apache.nutch.searcher
Interface HitContent

All Superinterfaces:
Closeable
All Known Subinterfaces:
RPCSegmentBean, SegmentBean
All Known Implementing Classes:
DistributedSegmentBean, FetchedSegments, NutchBean

public interface HitContent
extends Closeable

Service that returns the content of a hit.


Method Summary
 byte[] getContent(HitDetails details)
          Returns the content of a hit document.
 long getFetchDate(HitDetails details)
          Returns the fetch date of a hit document.
 ParseData getParseData(HitDetails details)
          Returns the ParseData of a hit document.
 ParseText getParseText(HitDetails details)
          Returns the ParseText of a hit document.
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

getContent

byte[] getContent(HitDetails details)
                  throws IOException
Returns the content of a hit document.

Throws:
IOException

getParseData

ParseData getParseData(HitDetails details)
                       throws IOException
Returns the ParseData of a hit document.

Throws:
IOException

getParseText

ParseText getParseText(HitDetails details)
                       throws IOException
Returns the ParseText of a hit document.

Throws:
IOException

getFetchDate

long getFetchDate(HitDetails details)
                  throws IOException
Returns the fetch date of a hit document.

Throws:
IOException


Copyright © 2006 The Apache Software Foundation