|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbox.searcher.AbstractSearcher
public abstract class AbstractSearcher
An abstract class define default behavior of Searcher.
Field Summary | |
---|---|
protected static long |
ALLPAGENUM
number of pages in table "Page" in data base. |
protected CutterBox |
cutterBox
|
protected PageHome |
pageHome
|
protected WordHome |
wordHome
|
Constructor Summary | |
---|---|
AbstractSearcher()
|
Method Summary | |
---|---|
protected double |
calculateTFIDF(double tf,
double pageNum)
Calculator TFIDF. |
protected long |
getAllPageNum()
Return number of pages in data base. |
protected void |
pageRank(PageProxy[] pageProxys,
int start,
int end)
Rank pages. |
void |
setCutterBox(CutterBox cutterBox)
Set a CutterBox object for Searcher to analyze the query string. |
void |
setPageHome(PageHome pageHome)
Set PageHome for visiting Page table in data base. |
void |
setWordHome(WordHome wordHome)
Set WordHome for visiting Word table in data base. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jbox.searcher.Searcher |
---|
search |
Field Detail |
---|
protected CutterBox cutterBox
protected PageHome pageHome
protected WordHome wordHome
protected static long ALLPAGENUM
Constructor Detail |
---|
public AbstractSearcher()
Method Detail |
---|
public void setCutterBox(CutterBox cutterBox)
Searcher
CutterBox
object for Searcher to analyze the query string.
setCutterBox
in interface Searcher
cutterBox
- CutterBox
object.public void setPageHome(PageHome pageHome)
setPageHome
in interface Searcher
pageHome
- for visiting Page table in data base.public void setWordHome(WordHome wordHome)
setWordHome
in interface Searcher
wordHome
- a WordHome for visiting Word table in data base.protected long getAllPageNum()
protected double calculateTFIDF(double tf, double pageNum)
tf
- TF.pageNum
- number of pages.
protected void pageRank(PageProxy[] pageProxys, int start, int end)
pageProxys
- PageProxy
array.start
- start position of the array.end
- end position of the array.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |