Package org.apache.lucene.util.fst
Class FST.Arc.BitTable
- java.lang.Object
-
- org.apache.lucene.util.fst.FST.Arc.BitTable
-
static class FST.Arc.BitTable extends java.lang.ObjectHelper methods to read the bit-table of a direct addressing node. Only valid forFST.ArcwithFST.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 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)
-
-
-
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.Arcis valid.- Throws:
java.io.IOException
-
-