Module org.apache.lucene.misc
Package org.apache.lucene.misc.index
Class BPIndexReorderer.ComputeBiasTask
java.lang.Object
org.apache.lucene.misc.index.BPIndexReorderer.BaseRecursiveAction
org.apache.lucene.misc.index.BPIndexReorderer.ComputeBiasTask
- Enclosing class:
BPIndexReorderer
-
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, executor
-
Constructor Summary
ConstructorsConstructorDescriptionComputeBiasTask
(int[] docs, float[] biases, int from, int to, int[] fromDocFreqs, int[] toDocFreqs, CloseableThreadLocal<BPIndexReorderer.PerThreadState> threadLocal, TaskExecutor executor, int depth) -
Method Summary
Modifier and TypeMethodDescriptioncall()
private static 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
invokeAll, shouldFork
-
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, TaskExecutor executor, int depth)
-
-
Method Details
-
call
- Specified by:
call
in interfaceCallable<Void>
- Specified by:
call
in classBPIndexReorderer.BaseRecursiveAction
-
computeBias
private static 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
-