Record Class InferenceOperator.BulkInferenceResponseItem
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.inference.InferenceOperator.BulkInferenceResponseItem
- Record Components:
inferenceResponse- The inference response (may be null for null requests).positionValueCounts- Array where each element indicates how many values the corresponding input position contributed.seqNo- The sequence number for ordering.
- Enclosing class:
InferenceOperator
public static record InferenceOperator.BulkInferenceResponseItem(InferenceAction.Response inferenceResponse, int[] positionValueCounts, long seqNo)
extends Record
Represents a completed inference response with metadata for result building.
-
Constructor Summary
ConstructorsConstructorDescriptionBulkInferenceResponseItem(InferenceAction.Response inferenceResponse, int[] positionValueCounts, long seqNo) Creates an instance of aBulkInferenceResponseItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinferenceResponserecord component.int[]Returns the value of thepositionValueCountsrecord component.longseqNo()Returns the value of theseqNorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BulkInferenceResponseItem
public BulkInferenceResponseItem(InferenceAction.Response inferenceResponse, int[] positionValueCounts, long seqNo) Creates an instance of aBulkInferenceResponseItemrecord class.- Parameters:
inferenceResponse- the value for theinferenceResponserecord componentpositionValueCounts- the value for thepositionValueCountsrecord componentseqNo- the value for theseqNorecord 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 '=='. -
inferenceResponse
Returns the value of theinferenceResponserecord component.- Returns:
- the value of the
inferenceResponserecord component
-
positionValueCounts
public int[] positionValueCounts()Returns the value of thepositionValueCountsrecord component.- Returns:
- the value of the
positionValueCountsrecord component
-
seqNo
public long seqNo()Returns the value of theseqNorecord component.- Returns:
- the value of the
seqNorecord component
-