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 booleanassertIsValid(FST.Arc<?> arc, FST.BytesReader in) Asserts the bit-table of the providedFST.Arcis valid.(package private) static intcountBits(FST.Arc<?> arc, FST.BytesReader in) (package private) static intcountBitsUpTo(int bitIndex, FST.Arc<?> arc, FST.BytesReader in) (package private) static booleanisBitSet(int bitIndex, FST.Arc<?> arc, FST.BytesReader in) (package private) static intnextBitSet(int bitIndex, FST.Arc<?> arc, FST.BytesReader in) (package private) static intpreviousBitSet(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.Arcis valid.- Throws:
IOException
-