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 aSubInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatboost()Returns the value of theboostrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intseqnum()Returns the value of theseqnumrecord component.Returns the value of thetermsOffsetsrecord component.text()Returns the value of thetextrecord 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 aSubInforecord class.- Parameters:
text- the value for thetextrecord componenttermsOffsets- the value for thetermsOffsetsrecord componentseqnum- the value for theseqnumrecord componentboost- the value for theboostrecord 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 thetextrecord component.- Returns:
- the value of the
textrecord component
-
termsOffsets
Returns the value of thetermsOffsetsrecord component.- Returns:
- the value of the
termsOffsetsrecord component
-
seqnum
public int seqnum()Returns the value of theseqnumrecord component.- Returns:
- the value of the
seqnumrecord component
-
boost
public float boost()Returns the value of theboostrecord component.- Returns:
- the value of the
boostrecord component
-