public interface RankedBitVector extends BitVector
countBits(boolean, long)
): number of occurrences of a bit
at a certain positionfindPosition(boolean, long)
): position of the
n-th occurrence of a certain bitModifier and Type | Field and Description |
---|---|
static long |
NOT_FOUND
This is a distinguished value, which denotes that the position of a
n-th occurrence of a bit was not found.
|
Modifier and Type | Method and Description |
---|---|
long |
countBits(boolean bit,
long position)
This is the "rank" method of bit vectors.
|
long |
findPosition(boolean bit,
long nOccurrence)
This is the "select" method of bit vectors.
|
static final long NOT_FOUND
findPosition(boolean, long)
,
Constant Field Valueslong countBits(boolean bit, long position)
bit
- bitposition
- positionlong findPosition(boolean bit, long nOccurrence)
bit
- bitnOccurrence
- number of occurrencesCopyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage