Record Class InferenceOperator.OngoingInferenceResult
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.inference.InferenceOperator.OngoingInferenceResult
- Record Components:
inputPage- The original input page.responses- The list of inference responses corresponding to the input requests.
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.core.Releasable
- Enclosing class:
InferenceOperator
public static record InferenceOperator.OngoingInferenceResult(Page inputPage, List<InferenceOperator.BulkInferenceResponseItem> responses)
extends Record
implements org.elasticsearch.core.Releasable
Represents the result of a bulk inference operation for a single input page.
-
Constructor Summary
ConstructorsConstructorDescriptionOngoingInferenceResult(Page inputPage, List<InferenceOperator.BulkInferenceResponseItem> responses) Creates an instance of aOngoingInferenceResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinputPagerecord component.Returns the value of theresponsesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OngoingInferenceResult
public OngoingInferenceResult(Page inputPage, List<InferenceOperator.BulkInferenceResponseItem> responses) Creates an instance of aOngoingInferenceResultrecord class.
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
inputPage
Returns the value of theinputPagerecord component.- Returns:
- the value of the
inputPagerecord component
-
responses
Returns the value of theresponsesrecord component.- Returns:
- the value of the
responsesrecord component
-