|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.nutch.searcher.FetchedSegments
public class FetchedSegments
Implements HitSummarizer
and HitContent
for a set of
fetched segments.
Field Summary | |
---|---|
static long |
VERSION
|
Constructor Summary | |
---|---|
FetchedSegments(Configuration conf,
Path segmentsDir)
Construct given a directory containing fetcher output. |
Method Summary | |
---|---|
void |
close()
|
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. |
long |
getProtocolVersion(String protocol,
long clientVersion)
|
String[] |
getSegmentNames()
|
Summary[] |
getSummary(HitDetails[] details,
Query query)
Returns summaries for a set of details. |
Summary |
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 |
Field Detail |
---|
public static final long VERSION
Constructor Detail |
---|
public FetchedSegments(Configuration conf, Path segmentsDir) throws IOException
IOException
Method Detail |
---|
public String[] getSegmentNames()
getSegmentNames
in interface SegmentBean
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 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 Summary 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 long getProtocolVersion(String protocol, long clientVersion) throws IOException
getProtocolVersion
in interface VersionedProtocol
IOException
public Summary[] 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
public void close() throws IOException
close
in interface Closeable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |