public class OperatorContext extends Object
getOperatorStats()
and revocable-memory-related operations are ThreadSafeConstructor and Description |
---|
OperatorContext(int operatorId,
PlanNodeId planNodeId,
String operatorType,
DriverContext driverContext,
Executor executor,
MemoryTrackingContext operatorMemoryContext) |
Modifier and Type | Method and Description |
---|---|
<C,R> R |
accept(QueryContextVisitor<C,R> visitor,
C context) |
AggregatedMemoryContext |
aggregateRevocableMemoryContext() |
AggregatedMemoryContext |
aggregateSystemMemoryContext() |
AggregatedMemoryContext |
aggregateUserMemoryContext() |
void |
destroy() |
DriverContext |
getDriverContext() |
io.airlift.stats.CounterStat |
getInputDataSize() |
io.airlift.stats.CounterStat |
getInputPositions() |
int |
getOperatorId() |
MemoryTrackingContext |
getOperatorMemoryContext() |
OperatorStats |
getOperatorStats() |
String |
getOperatorType() |
io.airlift.stats.CounterStat |
getOutputDataSize() |
io.airlift.stats.CounterStat |
getOutputPositions() |
long |
getPhysicalWrittenDataSize() |
long |
getReservedRevocableBytes() |
Session |
getSession() |
SpillContext |
getSpillContext() |
boolean |
isDone() |
boolean |
isMemoryRevokingRequested() |
com.google.common.util.concurrent.ListenableFuture<?> |
isWaitingForMemory() |
com.google.common.util.concurrent.ListenableFuture<?> |
isWaitingForRevocableMemory() |
LocalMemoryContext |
localRevocableMemoryContext() |
LocalMemoryContext |
localSystemMemoryContext() |
LocalMemoryContext |
localUserMemoryContext() |
void |
moreMemoryAvailable() |
AggregatedMemoryContext |
newAggregateSystemMemoryContext() |
LocalMemoryContext |
newLocalSystemMemoryContext(String allocationTag) |
void |
recordBlocked(com.google.common.util.concurrent.ListenableFuture<?> blocked) |
void |
recordNetworkInput(long sizeInBytes,
long positions)
Record the amount of network bytes that were read by an operator.
|
void |
recordOutput(long sizeInBytes,
long positions) |
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.
|
void |
recordPhysicalWrittenData(long sizeInBytes) |
void |
recordProcessedInput(long sizeInBytes,
long positions)
Record the size in bytes of input blocks that were processed by an operator.
|
long |
requestMemoryRevoking()
Returns how much revocable memory will be revoked by the operator
|
void |
resetMemoryRevokingRequested() |
void |
setInfoSupplier(Supplier<OperatorInfo> infoSupplier) |
void |
setMemoryRevocationRequestListener(Runnable listener) |
String |
toString() |
public OperatorContext(int operatorId, PlanNodeId planNodeId, String operatorType, DriverContext driverContext, Executor executor, MemoryTrackingContext operatorMemoryContext)
public int getOperatorId()
public String getOperatorType()
public DriverContext getDriverContext()
public Session getSession()
public boolean isDone()
public void recordPhysicalInputWithTiming(long sizeInBytes, long positions, long readNanos)
public void recordNetworkInput(long sizeInBytes, long positions)
public void recordProcessedInput(long sizeInBytes, long positions)
public void recordOutput(long sizeInBytes, long positions)
public void recordPhysicalWrittenData(long sizeInBytes)
public void recordBlocked(com.google.common.util.concurrent.ListenableFuture<?> blocked)
public com.google.common.util.concurrent.ListenableFuture<?> isWaitingForMemory()
public com.google.common.util.concurrent.ListenableFuture<?> isWaitingForRevocableMemory()
public LocalMemoryContext newLocalSystemMemoryContext(String allocationTag)
public LocalMemoryContext localUserMemoryContext()
public LocalMemoryContext localSystemMemoryContext()
public LocalMemoryContext localRevocableMemoryContext()
public AggregatedMemoryContext aggregateUserMemoryContext()
public AggregatedMemoryContext aggregateSystemMemoryContext()
public AggregatedMemoryContext aggregateRevocableMemoryContext()
public AggregatedMemoryContext newAggregateSystemMemoryContext()
public long getReservedRevocableBytes()
public void destroy()
public SpillContext getSpillContext()
public void moreMemoryAvailable()
public boolean isMemoryRevokingRequested()
public long requestMemoryRevoking()
public void resetMemoryRevokingRequested()
public void setMemoryRevocationRequestListener(Runnable listener)
public void setInfoSupplier(Supplier<OperatorInfo> infoSupplier)
public io.airlift.stats.CounterStat getInputDataSize()
public io.airlift.stats.CounterStat getInputPositions()
public io.airlift.stats.CounterStat getOutputDataSize()
public io.airlift.stats.CounterStat getOutputPositions()
public long getPhysicalWrittenDataSize()
public OperatorStats getOperatorStats()
public <C,R> R accept(QueryContextVisitor<C,R> visitor, C context)
public MemoryTrackingContext getOperatorMemoryContext()
Copyright © 2012–2019. All rights reserved.