Record Class DriverProfile

java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.DriverProfile
Record Components:
description - Description of the driver. This description should be short and meaningful as a grouping identifier. We use the phase of the query right now: "data", "node_reduce", "final".
clusterName - The name of the cluster this driver is running on.
nodeName - The name of the node this driver is running on.
startMillis - Millis since epoch when the driver started.
stopMillis - Millis since epoch when the driver stopped.
tookNanos - Nanos between creation and completion of the Driver.
cpuNanos - Nanos this Driver has been running on the cpu. Does not include async or waiting time.
iterations - The number of times the driver has moved a single page up the chain of operators as far as it'll go.
operators - Status of each Operator in the driver when it finished.
All Implemented Interfaces:
Writeable, ChunkedToXContent, ChunkedToXContentObject

public record DriverProfile(String description, String clusterName, String nodeName, long startMillis, long stopMillis, long tookNanos, long cpuNanos, long iterations, List<OperatorStatus> operators, DriverSleeps sleeps) extends Record implements Writeable, ChunkedToXContentObject
Profile results from a single Driver.
  • Constructor Details

    • DriverProfile

      public DriverProfile(String description, String clusterName, String nodeName, long startMillis, long stopMillis, long tookNanos, long cpuNanos, long iterations, List<OperatorStatus> operators, DriverSleeps sleeps)
      Creates an instance of a DriverProfile record class.
      Parameters:
      description - the value for the description record component
      clusterName - the value for the clusterName record component
      nodeName - the value for the nodeName record component
      startMillis - the value for the startMillis record component
      stopMillis - the value for the stopMillis record component
      tookNanos - the value for the tookNanos record component
      cpuNanos - the value for the cpuNanos record component
      iterations - the value for the iterations record component
      operators - the value for the operators record component
      sleeps - the value for the sleeps record component
  • Method Details

    • readFrom

      public static DriverProfile readFrom(StreamInput in) throws IOException
      Throws:
      IOException
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • toXContentChunked

      public Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params params)
      Specified by:
      toXContentChunked in interface ChunkedToXContent
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • clusterName

      public String clusterName()
      Returns the value of the clusterName record component.
      Returns:
      the value of the clusterName record component
    • nodeName

      public String nodeName()
      Returns the value of the nodeName record component.
      Returns:
      the value of the nodeName record component
    • startMillis

      public long startMillis()
      Returns the value of the startMillis record component.
      Returns:
      the value of the startMillis record component
    • stopMillis

      public long stopMillis()
      Returns the value of the stopMillis record component.
      Returns:
      the value of the stopMillis record component
    • tookNanos

      public long tookNanos()
      Returns the value of the tookNanos record component.
      Returns:
      the value of the tookNanos record component
    • cpuNanos

      public long cpuNanos()
      Returns the value of the cpuNanos record component.
      Returns:
      the value of the cpuNanos record component
    • iterations

      public long iterations()
      Returns the value of the iterations record component.
      Returns:
      the value of the iterations record component
    • operators

      public List<OperatorStatus> operators()
      Returns the value of the operators record component.
      Returns:
      the value of the operators record component
    • sleeps

      public DriverSleeps sleeps()
      Returns the value of the sleeps record component.
      Returns:
      the value of the sleeps record component