Module org.apache.lucene.core
Package org.apache.lucene.index
Record Class SortingCodecReader.SortingBits
java.lang.Object
java.lang.Record
org.apache.lucene.index.SortingCodecReader.SortingBits
- All Implemented Interfaces:
Bits
- Enclosing class:
SortingCodecReader
private static record SortingCodecReader.SortingBits(Bits in, Sorter.DocMap docMap)
extends Record
implements Bits
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.lucene.util.Bits
Bits.MatchAllBits, Bits.MatchNoBits -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Sorter.DocMapThe field for thedocMaprecord component.private final BitsThe field for theinrecord component.Fields inherited from interface org.apache.lucene.util.Bits
EMPTY_ARRAY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSortingBits(Bits in, Sorter.DocMap docMap) Creates an instance of aSortingBitsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondocMap()Returns the value of thedocMaprecord component.final booleanIndicates whether some other object is "equal to" this one.booleanget(int index) Returns the value of the bit with the specifiedindex.final inthashCode()Returns a hash code value for this object.in()Returns the value of theinrecord component.intlength()Returns the number of bits in this setfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
in
The field for theinrecord component. -
docMap
The field for thedocMaprecord component.
-
-
Constructor Details
-
SortingBits
Creates an instance of aSortingBitsrecord class.- Parameters:
in- the value for theinrecord componentdocMap- the value for thedocMaprecord component
-
-
Method Details
-
get
public boolean get(int index) Description copied from interface:BitsReturns the value of the bit with the specifiedindex.- Specified by:
getin 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:
trueif the bit is set,falseotherwise.
-
length
public int length()Description copied from interface:BitsReturns the number of bits in this set -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
in
Returns the value of theinrecord component.- Returns:
- the value of the
inrecord component
-
docMap
Returns the value of thedocMaprecord component.- Returns:
- the value of the
docMaprecord component
-