- java.lang.Object
-
- org.apache.lucene.index.BitsSlice
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.lucene.util.Bits
Bits.MatchAllBits, Bits.MatchNoBits
-
-
Constructor Summary
Constructors Constructor Description BitsSlice(Bits parent, ReaderSlice slice)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
get(int doc)
Returns the value of the bit with the specifiedindex
.int
length()
Returns the number of bits in this set
-
-
-
Field Detail
-
parent
private final Bits parent
-
start
private final int start
-
length
private final int length
-
-
Constructor Detail
-
BitsSlice
public BitsSlice(Bits parent, ReaderSlice slice)
-
-
Method Detail
-
get
public boolean get(int doc)
Description copied from interface:Bits
Returns the value of the bit with the specifiedindex
.- Specified by:
get
in interfaceBits
- Parameters:
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!- Returns:
true
if the bit is set,false
otherwise.
-
-