Package io.trino.execution.executor
Class RunningSplitInfo
java.lang.Object
io.trino.execution.executor.RunningSplitInfo
- All Implemented Interfaces:
Comparable<RunningSplitInfo>
A class representing a split that is running on the TaskRunner.
It has a Thread object that gets assigned while assigning the split
to the taskRunner. However, when the TaskRunner moves to a different split,
the thread stored here will not remain assigned to this split anymore.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintPrioritizedSplitRunner.getInfo()provides runtime statistics for the split (such as total cpu utilization so far).longbooleanvoid
-
Constructor Details
-
RunningSplitInfo
-
-
Method Details
-
getStartTime
public long getStartTime() -
getThreadId
-
getThread
-
getTaskId
-
getSplitInfo
PrioritizedSplitRunner.getInfo()provides runtime statistics for the split (such as total cpu utilization so far). A value returned from this method changes over time and cannot be cached as a field ofRunningSplitInfo.- Returns:
- Formatted string containing runtime statistics for the split.
-
isPrinted
public boolean isPrinted() -
setPrinted
public void setPrinted() -
compareTo
- Specified by:
compareToin interfaceComparable<RunningSplitInfo>
-