Class OperatorContext

    • Method Detail

      • getOperatorId

        public int getOperatorId()
      • getOperatorType

        public String getOperatorType()
      • getSession

        public Session getSession()
      • isDone

        public boolean isDone()
      • recordPhysicalInputWithTiming

        public void recordPhysicalInputWithTiming​(long sizeInBytes,
                                                  long positions,
                                                  long readNanos)
        Record the amount of physical bytes that were read by an operator and the time it took to read the data. This metric is valid only for source operators.
      • recordNetworkInput

        public void recordNetworkInput​(long sizeInBytes,
                                       long positions)
        Record the amount of network bytes that were read by an operator. This metric is valid only for source operators.
      • recordProcessedInput

        public void recordProcessedInput​(long sizeInBytes,
                                         long positions)
        Record the size in bytes of input blocks that were processed by an operator. This metric is valid only for source operators.
      • recordOutput

        public void recordOutput​(long sizeInBytes,
                                 long positions)
      • recordDynamicFilterSplitProcessed

        public void recordDynamicFilterSplitProcessed​(long dynamicFilterSplits)
      • recordPhysicalWrittenData

        public void recordPhysicalWrittenData​(long sizeInBytes)
      • recordBlocked

        public void recordBlocked​(com.google.common.util.concurrent.ListenableFuture<?> blocked)
      • isWaitingForMemory

        public com.google.common.util.concurrent.ListenableFuture<?> isWaitingForMemory()
      • isWaitingForRevocableMemory

        public com.google.common.util.concurrent.ListenableFuture<?> isWaitingForRevocableMemory()
      • getReservedRevocableBytes

        public long getReservedRevocableBytes()
      • destroy

        public void destroy()
      • moreMemoryAvailable

        public void moreMemoryAvailable()
      • isMemoryRevokingRequested

        public boolean isMemoryRevokingRequested()
      • requestMemoryRevoking

        public long requestMemoryRevoking()
        Returns how much revocable memory will be revoked by the operator
      • resetMemoryRevokingRequested

        public void resetMemoryRevokingRequested()
      • setMemoryRevocationRequestListener

        public void setMemoryRevocationRequestListener​(Runnable listener)
      • setNestedOperatorStatsSupplier

        public void setNestedOperatorStatsSupplier​(Supplier<List<OperatorStats>> nestedOperatorStatsSupplier)
      • getInputDataSize

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

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

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

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

        public long getPhysicalWrittenDataSize()