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, outOfMemory| Constructor and Description |
|---|
SpoolingRawBatchBuffer(FragmentContext context,
int fragmentCount,
int oppositeId,
int bufferIndex) |
| 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, isTerminatedpublic static final long ALLOCATOR_INITIAL_RESERVATION
public static final long ALLOCATOR_MAX_RESERVATION
public SpoolingRawBatchBuffer(FragmentContext context, int fragmentCount, int oppositeId, int bufferIndex)
public String getDir()
protected void enqueueInner(RawFragmentBatch batch) throws IOException
BaseRawBatchBufferenqueueInner in class BaseRawBatchBuffer<org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer.RawFragmentBatchWrapper>IOExceptionpublic void kill(FragmentContext context)
kill in interface RawFragmentBatchProviderkill in class BaseRawBatchBuffer<org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer.RawFragmentBatchWrapper>protected void upkeep(RawFragmentBatch batch)
BaseRawBatchBufferupkeep in class BaseRawBatchBuffer<org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer.RawFragmentBatchWrapper>public void close()
close in interface AutoCloseableclose in interface RawFragmentBatchProviderclose in class BaseRawBatchBuffer<org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer.RawFragmentBatchWrapper>Copyright © 2017 The Apache Software Foundation. All rights reserved.