Class VersionBlockTreeTermsWriter.PendingBlock
- java.lang.Object
-
- org.apache.lucene.sandbox.codecs.idversion.VersionBlockTreeTermsWriter.PendingEntry
-
- org.apache.lucene.sandbox.codecs.idversion.VersionBlockTreeTermsWriter.PendingBlock
-
- Enclosing class:
- VersionBlockTreeTermsWriter
private static final class VersionBlockTreeTermsWriter.PendingBlock extends VersionBlockTreeTermsWriter.PendingEntry
-
-
Field Summary
Fields Modifier and Type Field Description int
floorLeadByte
long
fp
boolean
hasTerms
FST<PairOutputs.Pair<BytesRef,java.lang.Long>>
index
boolean
isFloor
private long
maxVersion
Max version for all terms in this block.BytesRef
prefix
java.util.List<FST<PairOutputs.Pair<BytesRef,java.lang.Long>>>
subIndices
-
Fields inherited from class org.apache.lucene.sandbox.codecs.idversion.VersionBlockTreeTermsWriter.PendingEntry
isTerm
-
-
Constructor Summary
Constructors Constructor Description PendingBlock(BytesRef prefix, long maxVersion, long fp, boolean hasTerms, boolean isFloor, int floorLeadByte, java.util.List<FST<PairOutputs.Pair<BytesRef,java.lang.Long>>> subIndices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
append(FSTCompiler<PairOutputs.Pair<BytesRef,java.lang.Long>> fstCompiler, FST<PairOutputs.Pair<BytesRef,java.lang.Long>> subIndex, IntsRefBuilder scratchIntsRef)
void
compileIndex(java.util.List<VersionBlockTreeTermsWriter.PendingBlock> blocks, ByteBuffersDataOutput scratchBytes, IntsRefBuilder scratchIntsRef)
java.lang.String
toString()
-
-
-
Field Detail
-
prefix
public final BytesRef prefix
-
fp
public final long fp
-
index
public FST<PairOutputs.Pair<BytesRef,java.lang.Long>> index
-
subIndices
public java.util.List<FST<PairOutputs.Pair<BytesRef,java.lang.Long>>> subIndices
-
hasTerms
public final boolean hasTerms
-
isFloor
public final boolean isFloor
-
floorLeadByte
public final int floorLeadByte
-
maxVersion
private final long maxVersion
Max version for all terms in this block.
-
-
Constructor Detail
-
PendingBlock
public PendingBlock(BytesRef prefix, long maxVersion, long fp, boolean hasTerms, boolean isFloor, int floorLeadByte, java.util.List<FST<PairOutputs.Pair<BytesRef,java.lang.Long>>> subIndices)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compileIndex
public void compileIndex(java.util.List<VersionBlockTreeTermsWriter.PendingBlock> blocks, ByteBuffersDataOutput scratchBytes, IntsRefBuilder scratchIntsRef) throws java.io.IOException
- Throws:
java.io.IOException
-
append
private void append(FSTCompiler<PairOutputs.Pair<BytesRef,java.lang.Long>> fstCompiler, FST<PairOutputs.Pair<BytesRef,java.lang.Long>> subIndex, IntsRefBuilder scratchIntsRef) throws java.io.IOException
- Throws:
java.io.IOException
-
-