Class TaskContext


  • @ThreadSafe
    public class TaskContext
    extends Object
    • Method Detail

      • getTaskId

        public TaskId getTaskId()
      • getTotalPartitions

        public OptionalInt getTotalPartitions()
      • addPipelineContext

        public PipelineContext addPipelineContext​(int pipelineId,
                                                  boolean inputPipeline,
                                                  boolean outputPipeline,
                                                  boolean partitioned)
      • getSession

        public Session getSession()
      • start

        public void start()
      • failed

        public void failed​(Throwable cause)
      • isDone

        public boolean isDone()
      • getMemoryReservation

        public io.airlift.units.DataSize getMemoryReservation()
      • getSystemMemoryReservation

        public io.airlift.units.DataSize getSystemMemoryReservation()
      • getRevocableMemoryReservation

        public io.airlift.units.DataSize getRevocableMemoryReservation()
      • getCompletedDriverGroups

        public Set<Lifespan> getCompletedDriverGroups()
        Returns the completed driver groups (excluding taskWide). A driver group is considered complete if all drivers associated with it has completed, and no new drivers associated with it will be created.
      • addCompletedDriverGroup

        public void addCompletedDriverGroup​(Lifespan driverGroup)
      • reserveSpill

        public com.google.common.util.concurrent.ListenableFuture<?> reserveSpill​(long bytes)
      • freeSpill

        public void freeSpill​(long bytes)
      • moreMemoryAvailable

        public void moreMemoryAvailable()
      • isPerOperatorCpuTimerEnabled

        public boolean isPerOperatorCpuTimerEnabled()
      • isCpuTimerEnabled

        public boolean isCpuTimerEnabled()
      • getProcessedInputDataSize

        public io.airlift.stats.CounterStat getProcessedInputDataSize()
      • getInputPositions

        public io.airlift.stats.CounterStat getInputPositions()
      • getOutputDataSize

        public io.airlift.stats.CounterStat getOutputDataSize()
      • getOutputPositions

        public io.airlift.stats.CounterStat getOutputPositions()
      • getFullGcTime

        public io.airlift.units.Duration getFullGcTime()
      • getFullGcCount

        public int getFullGcCount()
      • getDynamicFiltersVersion

        public long getDynamicFiltersVersion()
      • getTaskStats

        public TaskStats getTaskStats()