Package io.trino.execution.executor
Class TaskExecutor.RunningSplitInfo
java.lang.Object
io.trino.execution.executor.TaskExecutor.RunningSplitInfo
- All Implemented Interfaces:
Comparable<TaskExecutor.RunningSplitInfo>
- Enclosing class:
- TaskExecutor
public static class TaskExecutor.RunningSplitInfo
extends Object
implements Comparable<TaskExecutor.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
ConstructorsConstructorDescriptionRunningSplitInfo(long startTime, String threadId, Thread thread, PrioritizedSplitRunner split) -
Method Summary
Modifier and TypeMethodDescriptionintPrioritizedSplitRunner.getInfo()provides runtime statistics for the split (such as total cpu utilization so far).longbooleanvoid
-
Constructor Details
-
RunningSplitInfo
public RunningSplitInfo(long startTime, String threadId, Thread thread, PrioritizedSplitRunner split)
-
-
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 ofTaskExecutor.RunningSplitInfo.- Returns:
- Formatted string containing runtime statistics for the split.
-
isPrinted
public boolean isPrinted() -
setPrinted
public void setPrinted() -
compareTo
- Specified by:
compareToin interfaceComparable<TaskExecutor.RunningSplitInfo>
-