Module org.elasticsearch.compute
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 theDriver.cpuNanos- Nanos thisDriverhas 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 eachOperatorin 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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionDriverProfile(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 aDriverProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclusterNamerecord component.longcpuNanos()Returns the value of thecpuNanosrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theiterationsrecord component.nodeName()Returns the value of thenodeNamerecord component.Returns the value of theoperatorsrecord component.static DriverProfilereadFrom(StreamInput in) sleeps()Returns the value of thesleepsrecord component.longReturns the value of thestartMillisrecord component.longReturns the value of thestopMillisrecord component.longReturns the value of thetookNanosrecord component.toString()Returns a string representation of this record class.Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
toXContentChunked, toXContentChunkedV8Methods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContentObject
isFragment
-
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 aDriverProfilerecord class.- Parameters:
description- the value for thedescriptionrecord componentclusterName- the value for theclusterNamerecord componentnodeName- the value for thenodeNamerecord componentstartMillis- the value for thestartMillisrecord componentstopMillis- the value for thestopMillisrecord componenttookNanos- the value for thetookNanosrecord componentcpuNanos- the value for thecpuNanosrecord componentiterations- the value for theiterationsrecord componentoperators- the value for theoperatorsrecord componentsleeps- the value for thesleepsrecord component
-
-
Method Details
-
readFrom
- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContentChunked
public Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params params) - Specified by:
toXContentChunkedin interfaceChunkedToXContent
-
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 '=='. -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
clusterName
Returns the value of theclusterNamerecord component.- Returns:
- the value of the
clusterNamerecord component
-
nodeName
Returns the value of thenodeNamerecord component.- Returns:
- the value of the
nodeNamerecord component
-
startMillis
public long startMillis()Returns the value of thestartMillisrecord component.- Returns:
- the value of the
startMillisrecord component
-
stopMillis
public long stopMillis()Returns the value of thestopMillisrecord component.- Returns:
- the value of the
stopMillisrecord component
-
tookNanos
public long tookNanos()Returns the value of thetookNanosrecord component.- Returns:
- the value of the
tookNanosrecord component
-
cpuNanos
public long cpuNanos()Returns the value of thecpuNanosrecord component.- Returns:
- the value of the
cpuNanosrecord component
-
iterations
public long iterations()Returns the value of theiterationsrecord component.- Returns:
- the value of the
iterationsrecord component
-
operators
Returns the value of theoperatorsrecord component.- Returns:
- the value of the
operatorsrecord component
-
sleeps
Returns the value of thesleepsrecord component.- Returns:
- the value of the
sleepsrecord component
-