public class SpoolingRawBatchBuffer extends BaseRawBatchBuffer<org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer.RawFragmentBatchWrapper>
BaseRawBatchBuffer.BufferQueue<T>
Modifier and Type | Field and Description |
---|---|
static long |
ALLOCATOR_INITIAL_RESERVATION |
static long |
ALLOCATOR_MAX_RESERVATION |
bufferQueue, bufferSizePerSocket, context, enableDynamicFC, outOfMemory
Constructor and Description |
---|
SpoolingRawBatchBuffer(FragmentContext context,
int fragmentCount,
int oppositeId,
int bufferIndex,
boolean enableDynamicFC) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
enqueueInner(RawFragmentBatch batch)
implementation specific method to enqueue batch
|
String |
getDir() |
void |
kill(FragmentContext context) |
protected void |
upkeep(RawFragmentBatch batch)
Handle miscellaneous tasks after batch retrieval
|
enqueue, getFragmentCount, getNext, isTerminated
public static final long ALLOCATOR_INITIAL_RESERVATION
public static final long ALLOCATOR_MAX_RESERVATION
public SpoolingRawBatchBuffer(FragmentContext context, int fragmentCount, int oppositeId, int bufferIndex, boolean enableDynamicFC)
public String getDir()
protected void enqueueInner(RawFragmentBatch batch) throws IOException
BaseRawBatchBuffer
enqueueInner
in class BaseRawBatchBuffer<org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer.RawFragmentBatchWrapper>
IOException
public void kill(FragmentContext context)
kill
in interface RawFragmentBatchProvider
kill
in class BaseRawBatchBuffer<org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer.RawFragmentBatchWrapper>
protected void upkeep(RawFragmentBatch batch)
BaseRawBatchBuffer
upkeep
in class BaseRawBatchBuffer<org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer.RawFragmentBatchWrapper>
public void close()
close
in interface AutoCloseable
close
in interface RawFragmentBatchProvider
close
in class BaseRawBatchBuffer<org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer.RawFragmentBatchWrapper>
Copyright © 1970 The Apache Software Foundation. All rights reserved.