|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.crawler.jobs.HopCount.DocumentHash
protected class HopCount.DocumentHash
The Document Hash structure contains the document nodes we are interested in, including those we need answers for to proceed. The main interface involves specifying a set of questions and receiving the answers. This structure permits multiple requests to be made to each object, and in-memory caching is used to reduce the amount of database activity as much as possible. It is also presumed that these requests take place inside of the appropriate transactions, since both read and write database activity may well occur.
| Field Summary | |
|---|---|
protected HopCount.NodeQueue |
childFetchQueue
This is the queue for nodes that need to be initialized, who need child fetching. |
protected HopCount.NodeQueue |
evaluationQueue
This is the queue for evaluating nodes. |
protected int |
hopcountMethod
The hopcount method |
protected java.lang.Long |
jobID
The job identifier |
protected java.lang.String[] |
legalLinkTypes
These are the legal link types for the job |
protected java.util.Map |
questionLookupMap
This is the map of known questions to DocumentNode objects. |
| Constructor Summary | |
|---|---|
HopCount.DocumentHash(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
int hopcountMethod)
Constructor |
|
| Method Summary | |
|---|---|
int[] |
askQuestions(HopCount.Question[] questions)
Throw in some questions, and prepare for the answers. |
protected void |
evaluateNode(HopCount.DocumentNode node)
Evaluate a node from the evaluation queue. |
protected void |
findChildren(java.util.Map referenceMap,
java.lang.String query,
java.util.ArrayList list)
Get the children of a bunch of nodes. |
protected void |
getNodeChildren(HopCount.DocumentNode[] nodes)
Fetch a the children of a bunch of nodes, and initialize all of the nodes appropriately. |
protected void |
makeNodeComplete(HopCount.DocumentNode node)
Make a node be complete. |
protected void |
notifyParents(HopCount.DocumentNode node)
Notify parents of a node's change of state. |
protected void |
queueParents(HopCount.DocumentNode node)
Queue the parents on the evaluation queue. |
protected HopCount.DocumentNode[] |
queueQuestions(HopCount.Question[] questions)
Queue up a set of questions. |
protected void |
removeChildLinks(HopCount.DocumentNode dn)
Remove remaining links to children. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Long jobID
protected java.util.Map questionLookupMap
protected HopCount.NodeQueue childFetchQueue
protected HopCount.NodeQueue evaluationQueue
protected java.lang.String[] legalLinkTypes
protected int hopcountMethod
| Constructor Detail |
|---|
public HopCount.DocumentHash(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
int hopcountMethod)
| Method Detail |
|---|
public int[] askQuestions(HopCount.Question[] questions)
throws ManifoldCFException
ManifoldCFException
protected void evaluateNode(HopCount.DocumentNode node)
throws ManifoldCFException
ManifoldCFException
protected void getNodeChildren(HopCount.DocumentNode[] nodes)
throws ManifoldCFException
ManifoldCFException
protected void findChildren(java.util.Map referenceMap,
java.lang.String query,
java.util.ArrayList list)
throws ManifoldCFException
ManifoldCFExceptionprotected void queueParents(HopCount.DocumentNode node)
protected void makeNodeComplete(HopCount.DocumentNode node)
throws ManifoldCFException
ManifoldCFException
protected HopCount.DocumentNode[] queueQuestions(HopCount.Question[] questions)
throws ManifoldCFException
questions - are the set of questions.
ManifoldCFExceptionprotected void notifyParents(HopCount.DocumentNode node)
protected void removeChildLinks(HopCount.DocumentNode dn)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||