Class BPIndexReorderer.ComputeGainsTask

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void compute()  
      private float computeGain​(int docID, BPIndexReorderer.ForwardIndex forwardIndex, int[] fromDocFreqs, int[] toDocFreqs)
      Compute a float that is negative when a document is attracted to the left and positive otherwise.
      • Methods inherited from class java.util.concurrent.RecursiveAction

        exec, getRawResult, setRawResult
      • Methods inherited from class java.util.concurrent.ForkJoinTask

        adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollSubmission, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • docs

        private final int[] docs
      • gains

        private final float[] gains
      • from

        private final int from
      • to

        private final int to
      • fromDocFreqs

        private final int[] fromDocFreqs
      • toDocFreqs

        private final int[] toDocFreqs
    • Method Detail

      • compute

        protected void compute()
        Specified by:
        compute in class java.util.concurrent.RecursiveAction
      • computeGain

        private float computeGain​(int docID,
                                  BPIndexReorderer.ForwardIndex forwardIndex,
                                  int[] fromDocFreqs,
                                  int[] toDocFreqs)
                           throws java.io.IOException
        Compute a float that is negative when a document is attracted to the left and positive otherwise.
        Throws:
        java.io.IOException