Class 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 Detail

      • nodeMap

        protected java.util.HashMap nodeMap
    • Constructor Detail

      • NodeQueue

        public NodeQueue()
        Constructor.
    • Method Detail

      • 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.