|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.tools.PruneIndexTool.StoreUrlsChecker
This checker's main function is just to store the URLs of each document to be deleted in a text file.
Constructor Summary | |
PruneIndexTool.StoreUrlsChecker(File out,
boolean storeHomeUrl)
Store the list in a file |
Method Summary | |
void |
close()
Close the checker - this could involve flushing output files or somesuch. |
boolean |
isPrunable(Query q,
IndexReader reader,
int docNum)
Check whether this document should be pruned. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PruneIndexTool.StoreUrlsChecker(File out, boolean storeHomeUrl) throws Exception
out
- name of the output fileMethod Detail |
public void close()
PruneIndexTool.PruneChecker
close
in interface PruneIndexTool.PruneChecker
public boolean isPrunable(Query q, IndexReader reader, int docNum) throws Exception
PruneIndexTool.PruneChecker
isPrunable
in interface PruneIndexTool.PruneChecker
reader
- index reader to read documents fromdocNum
- document ID
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |