Class HopCount.NodeQueue
- java.lang.Object
-
- org.apache.manifoldcf.crawler.jobs.HopCount.NodeQueue
-
- Enclosing class:
- HopCount
protected static class HopCount.NodeQueue extends java.lang.Object
A queue object allows document nodes to be ordered appropriately for the most efficient execution. The queue handles DocumentNode objects exclusively. Mapping of Question to DocumentNode object involves structures outside of all queues.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.HashMap
nodeMap
-
Constructor Summary
Constructors Constructor Description NodeQueue()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToQueue(HopCount.DocumentNode node)
Queue a document node.HopCount.DocumentNode
nextNode()
Fetch the next object off the queue for processing.HopCount.DocumentNode[]
nextNodes()
Fetch ALL of the nodes off the queue in one step.void
removeFromQueue(HopCount.DocumentNode node)
Remove a node from the queue.
-
-
-
Method Detail
-
addToQueue
public void addToQueue(HopCount.DocumentNode node)
Queue a document node.
-
removeFromQueue
public void removeFromQueue(HopCount.DocumentNode node)
Remove a node from the queue. This might happen if the node no longer needs evaluation.
-
nextNode
public HopCount.DocumentNode nextNode()
Fetch the next object off the queue for processing. Returns null if there are no more objects.
-
nextNodes
public HopCount.DocumentNode[] nextNodes()
Fetch ALL of the nodes off the queue in one step.
-
-