java.lang.Object
org.apache.lucene.util.fst.FST.Arc.BitTable
Helper methods to read the bit-table of a direct addressing node. Only valid for
FST.Arc
with FST.Arc.nodeFlags()
== ARCS_FOR_DIRECT_ADDRESSING
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(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)
-
Constructor Details
-
BitTable
BitTable()
-
-
Method Details
-
isBitSet
- Throws:
IOException
-
countBits
SeeBitTableUtil.countBits(int, FST.BytesReader)
. The count of bit set is the number of arcs of a direct addressing node.- Throws:
IOException
-
countBitsUpTo
- Throws:
IOException
-
nextBitSet
- Throws:
IOException
-
previousBitSet
- Throws:
IOException
-
assertIsValid
Asserts the bit-table of the providedFST.Arc
is valid.- Throws:
IOException
-