Package org.apache.lucene.misc.search
Record Class MemoryAccountingBitsetCollectorManager.Result
java.lang.Object
java.lang.Record
org.apache.lucene.misc.search.MemoryAccountingBitsetCollectorManager.Result
- Enclosing class:
MemoryAccountingBitsetCollectorManager
public static record MemoryAccountingBitsetCollectorManager.Result(FixedBitSet bitSet, long totalBytesUsed)
extends Record
The result of a search, containing the matched document IDs and total memory used.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(FixedBitSet bitSet, long totalBytesUsed) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbitSet()Returns the value of thebitSetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalBytesUsedrecord component.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
bitSet- the value for thebitSetrecord componenttotalBytesUsed- the value for thetotalBytesUsedrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
bitSet
Returns the value of thebitSetrecord component.- Returns:
- the value of the
bitSetrecord component
-
totalBytesUsed
public long totalBytesUsed()Returns the value of thetotalBytesUsedrecord component.- Returns:
- the value of the
totalBytesUsedrecord component
-