Class HopCount.DocumentHash

  • Enclosing class:
    HopCount

    protected class HopCount.DocumentHash
    extends java.lang.Object
    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 Detail

      • jobID

        protected java.lang.Long jobID
        The job identifier
      • questionLookupMap

        protected java.util.Map questionLookupMap
        This is the map of known questions to DocumentNode objects.
      • childFetchQueue

        protected HopCount.NodeQueue childFetchQueue
        This is the queue for nodes that need to be initialized, who need child fetching.
      • evaluationQueue

        protected HopCount.NodeQueue evaluationQueue
        This is the queue for evaluating nodes. For all of these nodes, the processing has begun: all child nodes have been queued, and at least a partial answer is present. Evaluating one of these nodes involves potentially updating the node's answer, and when that is done, all listed parents will be requeued on this queue.
      • legalLinkTypes

        protected java.lang.String[] legalLinkTypes
        These are the legal link types for the job
      • hopcountMethod

        protected int hopcountMethod
        The hopcount method
    • Constructor Detail

      • DocumentHash

        public DocumentHash​(java.lang.Long jobID,
                            java.lang.String[] legalLinkTypes,
                            int hopcountMethod)
        Constructor