org.archive.access.nutch
Class NutchwaxBean

java.lang.Object
  extended by org.apache.nutch.searcher.NutchBean
      extended by org.archive.access.nutch.NutchwaxBean
All Implemented Interfaces:
org.apache.hadoop.io.Closeable, org.apache.hadoop.ipc.VersionedProtocol, org.apache.nutch.searcher.DistributedSearch.Protocol, org.apache.nutch.searcher.HitContent, org.apache.nutch.searcher.HitDetailer, org.apache.nutch.searcher.HitInlinks, org.apache.nutch.searcher.HitSummarizer, org.apache.nutch.searcher.Searcher

public class NutchwaxBean
extends org.apache.nutch.searcher.NutchBean

Proxy that allows us intercept getSummary so we can change key used.

Author:
stack

Field Summary
 
Fields inherited from class org.apache.nutch.searcher.NutchBean
LOG
 
Constructor Summary
NutchwaxBean(org.apache.hadoop.conf.Configuration conf)
           
NutchwaxBean(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path dir)
           
 
Method Summary
static org.apache.nutch.searcher.NutchBean get(javax.servlet.ServletContext app, org.apache.hadoop.conf.Configuration conf)
           
 java.lang.String[] getAnchors(org.apache.nutch.searcher.HitDetails h)
           
protected  org.apache.nutch.searcher.HitDetails getCollectionQualifiedHitDetails(org.apache.nutch.searcher.HitDetails h)
          TODO: Make it so I don't have to create a new HitDetails changing the key used doing lookup.
 org.apache.nutch.crawl.Inlinks getInlinks(org.apache.nutch.searcher.HitDetails h)
           
 org.apache.nutch.searcher.Summary[] getSummary(org.apache.nutch.searcher.HitDetails[] hits, org.apache.nutch.searcher.Query query)
           
static void main(java.lang.String[] args)
          For debugging.
 
Methods inherited from class org.apache.nutch.searcher.NutchBean
close, getContent, getDetails, getDetails, getExplanation, getFetchDate, getParseData, getParseText, getProtocolVersion, getSegmentNames, getSummary, search, search, search, search, search
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NutchwaxBean

public NutchwaxBean(org.apache.hadoop.conf.Configuration conf,
                    org.apache.hadoop.fs.Path dir)
             throws java.io.IOException
Throws:
java.io.IOException

NutchwaxBean

public NutchwaxBean(org.apache.hadoop.conf.Configuration conf)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

get

public static org.apache.nutch.searcher.NutchBean get(javax.servlet.ServletContext app,
                                                      org.apache.hadoop.conf.Configuration conf)
                                               throws java.io.IOException
Throws:
java.io.IOException

getSummary

public org.apache.nutch.searcher.Summary[] getSummary(org.apache.nutch.searcher.HitDetails[] hits,
                                                      org.apache.nutch.searcher.Query query)
                                               throws java.io.IOException
Specified by:
getSummary in interface org.apache.nutch.searcher.HitSummarizer
Overrides:
getSummary in class org.apache.nutch.searcher.NutchBean
Throws:
java.io.IOException

getAnchors

public java.lang.String[] getAnchors(org.apache.nutch.searcher.HitDetails h)
                              throws java.io.IOException
Specified by:
getAnchors in interface org.apache.nutch.searcher.HitInlinks
Overrides:
getAnchors in class org.apache.nutch.searcher.NutchBean
Throws:
java.io.IOException

getInlinks

public org.apache.nutch.crawl.Inlinks getInlinks(org.apache.nutch.searcher.HitDetails h)
                                          throws java.io.IOException
Specified by:
getInlinks in interface org.apache.nutch.searcher.HitInlinks
Overrides:
getInlinks in class org.apache.nutch.searcher.NutchBean
Throws:
java.io.IOException

getCollectionQualifiedHitDetails

protected org.apache.nutch.searcher.HitDetails getCollectionQualifiedHitDetails(org.apache.nutch.searcher.HitDetails h)
TODO: Make it so I don't have to create a new HitDetails changing the key used doing lookup.

Parameters:
h -
Returns:

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
For debugging.

Throws:
java.lang.Exception


Copyright © 2005-2007 Internet Archive. All Rights Reserved.