Package org.apache.lucene.index
Class SortingLeafReader.SortingBits
- java.lang.Object
-
- org.apache.lucene.index.SortingLeafReader.SortingBits
-
- All Implemented Interfaces:
Bits
- Enclosing class:
- SortingLeafReader
private static class SortingLeafReader.SortingBits extends java.lang.Object implements Bits
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.lucene.util.Bits
Bits.MatchAllBits, Bits.MatchNoBits
-
-
Field Summary
Fields Modifier and Type Field Description private Sorter.DocMap
docMap
private Bits
in
-
Fields inherited from interface org.apache.lucene.util.Bits
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description SortingBits(Bits in, Sorter.DocMap docMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
get(int index)
Returns the value of the bit with the specifiedindex
.int
length()
Returns the number of bits in this set
-
-
-
Field Detail
-
in
private final Bits in
-
docMap
private final Sorter.DocMap docMap
-
-
Constructor Detail
-
SortingBits
public SortingBits(Bits in, Sorter.DocMap docMap)
-
-
Method Detail
-
get
public boolean get(int index)
Description copied from interface:Bits
Returns the value of the bit with the specifiedindex
.- Specified by:
get
in interfaceBits
- Parameters:
index
- 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.
-
-