Module org.apache.lucene.misc
Package org.apache.lucene.misc.index
Class BPIndexReorderer.ForwardIndex
java.lang.Object
org.apache.lucene.misc.index.BPIndexReorderer.ForwardIndex
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Cloneable
- Enclosing class:
BPIndexReorderer
private static final class BPIndexReorderer.ForwardIndex
extends Object
implements Cloneable, Closeable
A forward index. Like term vectors, but only for a subset of terms, and it produces term IDs
instead of whole terms.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]
private final IntsRef
private long
private final int
private final RandomAccessInput
private final IndexInput
private final IndexInput
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
startOffsets
-
startOffsetsInput
-
terms
-
maxTerm
private final int maxTerm -
endOffset
private long endOffset -
buffer
private final int[] buffer -
bufferRef
-
-
Constructor Details
-
ForwardIndex
ForwardIndex(IndexInput startOffsetsInput, IndexInput terms, int maxTerm)
-
-
Method Details
-
seek
- Throws:
IOException
-
nextTerms
- Throws:
IOException
-
clone
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-