|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.searcher.FetchedSegments
Implements HitSummarizer
and HitContent
for a set of
fetched segments.
Constructor Summary | |
FetchedSegments(NutchFileSystem nfs,
String segmentsDir)
Construct given a directory containing fetcher output. |
Method Summary | |
String[] |
getAnchors(HitDetails details)
Returns the anchors of a hit document. |
byte[] |
getContent(HitDetails details)
Returns the content of a hit document. |
long |
getFetchDate(HitDetails details)
Returns the anchors 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. |
String[] |
getSegmentNames()
|
String[] |
getSummary(HitDetails[] details,
Query query)
Returns summaries for a set of details. |
String |
getSummary(HitDetails details,
Query query)
Returns a summary for the given hit details. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FetchedSegments(NutchFileSystem nfs, String segmentsDir) throws IOException
Method Detail |
public String[] getSegmentNames()
public byte[] getContent(HitDetails details) throws IOException
HitContent
getContent
in interface HitContent
IOException
public ParseData getParseData(HitDetails details) throws IOException
HitContent
getParseData
in interface HitContent
IOException
public String[] getAnchors(HitDetails details) throws IOException
HitContent
getAnchors
in interface HitContent
IOException
public long getFetchDate(HitDetails details) throws IOException
HitContent
getFetchDate
in interface HitContent
IOException
public ParseText getParseText(HitDetails details) throws IOException
HitContent
getParseText
in interface HitContent
IOException
public String getSummary(HitDetails details, Query query) throws IOException
HitSummarizer
getSummary
in interface HitSummarizer
details
- the details of the hit to be summarizedquery
- indicates what should be higlighted in the summary text
IOException
public String[] getSummary(HitDetails[] details, Query query) throws IOException
HitSummarizer
getSummary
in interface HitSummarizer
details
- the details of hits to be summarizedquery
- indicates what should be higlighted in the summary text
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |