Record Class EsqlQueryResponse.Profile
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.action.EsqlQueryResponse.Profile
- All Implemented Interfaces:
Writeable
- Enclosing class:
EsqlQueryResponse
public static record EsqlQueryResponse.Profile(List<DriverProfile> drivers, List<PlanProfile> plans)
extends Record
implements Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionProfile(List<DriverProfile> drivers, List<PlanProfile> plans) Creates an instance of aProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondrivers()Returns the value of thedriversrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.plans()Returns the value of theplansrecord component.static EsqlQueryResponse.ProfilereadFrom(StreamInput in) final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out)
-
Constructor Details
-
Profile
Creates an instance of aProfilerecord class.- Parameters:
drivers- the value for thedriversrecord componentplans- the value for theplansrecord component
-
-
Method Details
-
readFrom
- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
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). -
drivers
Returns the value of thedriversrecord component.- Returns:
- the value of the
driversrecord component
-
plans
Returns the value of theplansrecord component.- Returns:
- the value of the
plansrecord component
-