protected class HopCount.DocumentHash extends 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 Long |
jobID
The job identifier
|
protected String[] |
legalLinkTypes
These are the legal link types for the job
|
protected Map |
questionLookupMap
This is the map of known questions to DocumentNode objects.
|
Constructor and Description |
---|
HopCount.DocumentHash(Long jobID,
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(Map referenceMap,
Long jobID,
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(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 Long jobID
protected Map questionLookupMap
protected HopCount.NodeQueue childFetchQueue
protected HopCount.NodeQueue evaluationQueue
protected String[] legalLinkTypes
protected int hopcountMethod
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 int maxClauseFindChildren(Long jobID)
protected void findChildren(Map referenceMap, Long jobID, ArrayList list) throws ManifoldCFException
ManifoldCFException
protected 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.ManifoldCFException
protected void notifyParents(HopCount.DocumentNode node)
protected void removeChildLinks(HopCount.DocumentNode dn)