Record Class InferenceOperator.OngoingInferenceResult
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.inference.InferenceOperator.OngoingInferenceResult
- Record Components:
inputPage- The input page used to generate inference requests.responses- The inference responses returned by the inference service.
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.core.Releasable
- Enclosing class:
InferenceOperator
public static record InferenceOperator.OngoingInferenceResult(Page inputPage, List<InferenceAction.Response> responses)
extends Record
implements org.elasticsearch.core.Releasable
Represents the result of an ongoing inference operation, including the original input page
and the list of inference responses.
-
Constructor Summary
ConstructorsConstructorDescriptionOngoingInferenceResult(Page inputPage, List<InferenceAction.Response> 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
-
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
-