protected class HopCount.DocumentHash
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
DocumentHash(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
int hopcountMethod)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.Long jobID,
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 int |
maxClauseFindChildren(java.lang.Long jobID)
Get the max clauses.
|
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.
|
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
public DocumentHash(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
int hopcountMethod)
public int[] askQuestions(HopCount.Question[] questions) throws ManifoldCFException
ManifoldCFExceptionprotected void evaluateNode(HopCount.DocumentNode node) throws ManifoldCFException
ManifoldCFExceptionprotected void getNodeChildren(HopCount.DocumentNode[] nodes) throws ManifoldCFException
ManifoldCFExceptionprotected int maxClauseFindChildren(java.lang.Long jobID)
protected void findChildren(java.util.Map referenceMap,
java.lang.Long jobID,
java.util.ArrayList list)
throws ManifoldCFException
ManifoldCFExceptionprotected void queueParents(HopCount.DocumentNode node)
protected void makeNodeComplete(HopCount.DocumentNode node) throws ManifoldCFException
ManifoldCFExceptionprotected 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)