- java.lang.Object
-
- org.apache.lucene.util.fst.FST.Arc.BitTable
-
static class FST.Arc.BitTable extends java.lang.Object
Helper methods to read the bit-table of a direct addressing node. Only valid forFST.Arc
withFST.Arc.nodeFlags()
==ARCS_FOR_DIRECT_ADDRESSING
.
-
-
Constructor Summary
Constructors Constructor Description BitTable()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static boolean
assertIsValid(FST.Arc<?> arc, FST.BytesReader in)
Asserts the bit-table of the providedFST.Arc
is valid.(package private) static int
countBits(FST.Arc<?> arc, FST.BytesReader in)
(package private) static int
countBitsUpTo(int bitIndex, FST.Arc<?> arc, FST.BytesReader in)
(package private) static boolean
isBitSet(int bitIndex, FST.Arc<?> arc, FST.BytesReader in)
(package private) static int
nextBitSet(int bitIndex, FST.Arc<?> arc, FST.BytesReader in)
(package private) static int
previousBitSet(int bitIndex, FST.Arc<?> arc, FST.BytesReader in)
-
-
-
Method Detail
-
isBitSet
static boolean isBitSet(int bitIndex, FST.Arc<?> arc, FST.BytesReader in) throws java.io.IOException
- Throws:
java.io.IOException
-
countBits
static int countBits(FST.Arc<?> arc, FST.BytesReader in) throws java.io.IOException
SeeBitTableUtil.countBits(int, FST.BytesReader)
. The count of bit set is the number of arcs of a direct addressing node.- Throws:
java.io.IOException
-
countBitsUpTo
static int countBitsUpTo(int bitIndex, FST.Arc<?> arc, FST.BytesReader in) throws java.io.IOException
- Throws:
java.io.IOException
-
nextBitSet
static int nextBitSet(int bitIndex, FST.Arc<?> arc, FST.BytesReader in) throws java.io.IOException
- Throws:
java.io.IOException
-
previousBitSet
static int previousBitSet(int bitIndex, FST.Arc<?> arc, FST.BytesReader in) throws java.io.IOException
- Throws:
java.io.IOException
-
assertIsValid
static boolean assertIsValid(FST.Arc<?> arc, FST.BytesReader in) throws java.io.IOException
Asserts the bit-table of the providedFST.Arc
is valid.- Throws:
java.io.IOException
-
-