Record Class FieldFragList.WeightedFragInfo.SubInfo
java.lang.Object
java.lang.Record
org.apache.lucene.search.vectorhighlight.FieldFragList.WeightedFragInfo.SubInfo
- Record Components:
text
- unnecessary member, just exists for debugging purposetermsOffsets
- usually termsOffsets.size() == 1, but if position-gap > 1 and slop > 0 then size() could be greater than 1boost
- used for scoring split WeightedPhraseInfos.
- Enclosing class:
FieldFragList.WeightedFragInfo
public static record FieldFragList.WeightedFragInfo.SubInfo(String text, List<FieldPhraseList.WeightedPhraseInfo.Toffs> termsOffsets, int seqnum, float boost)
extends Record
Represents the list of term offsets for some text
-
Constructor Summary
ConstructorsConstructorDescriptionSubInfo
(String text, List<FieldPhraseList.WeightedPhraseInfo.Toffs> termsOffsets, int seqnum, float boost) Creates an instance of aSubInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionfloat
boost()
Returns the value of theboost
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.int
seqnum()
Returns the value of theseqnum
record component.Returns the value of thetermsOffsets
record component.text()
Returns the value of thetext
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
SubInfo
public SubInfo(String text, List<FieldPhraseList.WeightedPhraseInfo.Toffs> termsOffsets, int seqnum, float boost) Creates an instance of aSubInfo
record class.- Parameters:
text
- the value for thetext
record componenttermsOffsets
- the value for thetermsOffsets
record componentseqnum
- the value for theseqnum
record componentboost
- the value for theboost
record 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 '=='. -
text
Returns the value of thetext
record component.- Returns:
- the value of the
text
record component
-
termsOffsets
Returns the value of thetermsOffsets
record component.- Returns:
- the value of the
termsOffsets
record component
-
seqnum
public int seqnum()Returns the value of theseqnum
record component.- Returns:
- the value of the
seqnum
record component
-
boost
public float boost()Returns the value of theboost
record component.- Returns:
- the value of the
boost
record component
-