Module org.apache.lucene.misc
Package org.apache.lucene.misc.index
Class BPIndexReorderer.ComputeBiasTask
java.lang.Object
java.util.concurrent.ForkJoinTask<Void>
java.util.concurrent.RecursiveAction
org.apache.lucene.misc.index.BPIndexReorderer.BaseRecursiveAction
org.apache.lucene.misc.index.BPIndexReorderer.ComputeBiasTask
- All Implemented Interfaces:
Serializable
,Future<Void>
- Enclosing class:
BPIndexReorderer
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final float[]
private final int[]
private final int
private final int[]
private final CloseableThreadLocal
<BPIndexReorderer.PerThreadState> private final int
private final int[]
Fields inherited from class org.apache.lucene.misc.index.BPIndexReorderer.BaseRecursiveAction
depth
-
Constructor Summary
ConstructorsConstructorDescriptionComputeBiasTask
(int[] docs, float[] biases, int from, int to, int[] fromDocFreqs, int[] toDocFreqs, CloseableThreadLocal<BPIndexReorderer.PerThreadState> threadLocal, int depth) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
compute()
private float
computeBias
(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 org.apache.lucene.misc.index.BPIndexReorderer.BaseRecursiveAction
shouldFork
Methods inherited from class java.util.concurrent.RecursiveAction
exec, getRawResult, setRawResult
Methods inherited from class java.util.concurrent.ForkJoinTask
adapt, adapt, adapt, adaptInterruptible, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, exceptionNow, 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, quietlyJoin, quietlyJoinUninterruptibly, reinitialize, resultNow, setForkJoinTaskTag, state, tryUnfork
-
Field Details
-
docs
private final int[] docs -
biases
private final float[] biases -
from
private final int from -
to
private final int to -
fromDocFreqs
private final int[] fromDocFreqs -
toDocFreqs
private final int[] toDocFreqs -
threadLocal
-
-
Constructor Details
-
ComputeBiasTask
ComputeBiasTask(int[] docs, float[] biases, int from, int to, int[] fromDocFreqs, int[] toDocFreqs, CloseableThreadLocal<BPIndexReorderer.PerThreadState> threadLocal, int depth)
-
-
Method Details
-
compute
protected void compute()- Specified by:
compute
in classRecursiveAction
-
computeBias
private float computeBias(int docID, BPIndexReorderer.ForwardIndex forwardIndex, int[] fromDocFreqs, int[] toDocFreqs) throws IOException Compute a float that is negative when a document is attracted to the left and positive otherwise.- Throws:
IOException
-