Bits.MatchAllBits, Bits.MatchNoBits
Modifier and Type | Field and Description |
---|---|
private int |
length |
private Bits |
parent |
private int |
start |
EMPTY_ARRAY
Constructor and Description |
---|
BitsSlice(Bits parent,
ReaderSlice slice) |
Modifier and Type | Method and Description |
---|---|
boolean |
get(int doc)
Returns the value of the bit with the specified
index . |
int |
length()
Returns the number of bits in this set
|
private final Bits parent
private final int start
private final int length
public BitsSlice(Bits parent, ReaderSlice slice)
public boolean get(int doc)
Bits
index
.get
in interface Bits
doc
- index, should be non-negative and < Bits.length()
.
The result of passing negative or out of bounds values is undefined
by this interface, just don't do it!true
if the bit is set, false
otherwise.