@ThreadSafe public class QueryContext extends Object
| Constructor and Description |
|---|
QueryContext(QueryId queryId,
io.airlift.units.DataSize maxUserMemory,
io.airlift.units.DataSize maxTotalMemory,
MemoryPool memoryPool,
io.airlift.stats.GcMonitor gcMonitor,
Executor notificationExecutor,
ScheduledExecutorService yieldExecutor,
io.airlift.units.DataSize maxSpill,
SpillSpaceTracker spillSpaceTracker) |
| Modifier and Type | Method and Description |
|---|---|
<C,R> R |
accept(QueryContextVisitor<C,R> visitor,
C context) |
<C,R> List<R> |
acceptChildren(QueryContextVisitor<C,R> visitor,
C context) |
TaskContext |
addTaskContext(TaskStateMachine taskStateMachine,
Session session,
boolean perOperatorCpuTimerEnabled,
boolean cpuTimerEnabled,
OptionalInt totalPartitions) |
void |
freeSpill(long bytes) |
MemoryPool |
getMemoryPool() |
TaskContext |
getTaskContextByTaskId(TaskId taskId) |
com.google.common.util.concurrent.ListenableFuture<?> |
reserveSpill(long bytes) |
void |
setMemoryPool(MemoryPool newMemoryPool) |
void |
setResourceOvercommit() |
public QueryContext(QueryId queryId, io.airlift.units.DataSize maxUserMemory, io.airlift.units.DataSize maxTotalMemory, MemoryPool memoryPool, io.airlift.stats.GcMonitor gcMonitor, Executor notificationExecutor, ScheduledExecutorService yieldExecutor, io.airlift.units.DataSize maxSpill, SpillSpaceTracker spillSpaceTracker)
public void setResourceOvercommit()
public com.google.common.util.concurrent.ListenableFuture<?> reserveSpill(long bytes)
public void freeSpill(long bytes)
public void setMemoryPool(MemoryPool newMemoryPool)
public MemoryPool getMemoryPool()
public TaskContext addTaskContext(TaskStateMachine taskStateMachine, Session session, boolean perOperatorCpuTimerEnabled, boolean cpuTimerEnabled, OptionalInt totalPartitions)
public <C,R> R accept(QueryContextVisitor<C,R> visitor, C context)
public <C,R> List<R> acceptChildren(QueryContextVisitor<C,R> visitor, C context)
public TaskContext getTaskContextByTaskId(TaskId taskId)
Copyright © 2012–2019. All rights reserved.