Class RunningSplitInfo

java.lang.Object
io.trino.execution.executor.RunningSplitInfo
All Implemented Interfaces:
Comparable<RunningSplitInfo>

public class RunningSplitInfo extends Object implements 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 Details

  • Method Details

    • getStartTime

      public long getStartTime()
    • getThreadId

      public String getThreadId()
    • getThread

      public Thread getThread()
    • getTaskId

      public TaskId getTaskId()
    • getSplitInfo

      public String 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 of RunningSplitInfo.
      Returns:
      Formatted string containing runtime statistics for the split.
    • isPrinted

      public boolean isPrinted()
    • setPrinted

      public void setPrinted()
    • compareTo

      public int compareTo(RunningSplitInfo o)
      Specified by:
      compareTo in interface Comparable<RunningSplitInfo>