Package org.apache.lucene.facet
Record Class FacetsCollector.MatchingDocs
java.lang.Object
java.lang.Record
org.apache.lucene.facet.FacetsCollector.MatchingDocs
- Record Components:
context
- Context for this segment.bits
- Which documents were seen.totalHits
- Total number of hitsscores
- Non-sparse scores array.
- Enclosing class:
FacetsCollector
public static record FacetsCollector.MatchingDocs(LeafReaderContext context, DocIdSet bits, int totalHits, float[] scores)
extends Record
Holds the documents that were matched in the
LeafReaderContext
. If scores were
required, then scores
is not null.-
Constructor Summary
ConstructorsConstructorDescriptionMatchingDocs
(LeafReaderContext context, DocIdSet bits, int totalHits, float[] scores) Creates an instance of aMatchingDocs
record class. -
Method Summary
Modifier and TypeMethodDescriptionbits()
Returns the value of thebits
record component.context()
Returns the value of thecontext
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.float[]
scores()
Returns the value of thescores
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of thetotalHits
record component.
-
Constructor Details
-
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 '=='. -
context
Returns the value of thecontext
record component.- Returns:
- the value of the
context
record component
-
bits
Returns the value of thebits
record component.- Returns:
- the value of the
bits
record component
-
totalHits
public int totalHits()Returns the value of thetotalHits
record component.- Returns:
- the value of the
totalHits
record component
-
scores
public float[] scores()Returns the value of thescores
record component.- Returns:
- the value of the
scores
record component
-