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 aMatchingDocsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbits()Returns the value of thebitsrecord component.context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.float[]scores()Returns the value of thescoresrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalHitsrecord 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 thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
bits
Returns the value of thebitsrecord component.- Returns:
- the value of the
bitsrecord component
-
totalHits
public int totalHits()Returns the value of thetotalHitsrecord component.- Returns:
- the value of the
totalHitsrecord component
-
scores
public float[] scores()Returns the value of thescoresrecord component.- Returns:
- the value of the
scoresrecord component
-