Package org.apache.drill.exec.work.batch
Class SpoolingRawBatchBuffer
java.lang.Object
org.apache.drill.exec.work.batch.BaseRawBatchBuffer<org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer.RawFragmentBatchWrapper>
org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer
- All Implemented Interfaces:
- AutoCloseable,- RawFragmentBatchProvider,- RawBatchBuffer
public class SpoolingRawBatchBuffer
extends BaseRawBatchBuffer<org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer.RawFragmentBatchWrapper>
This implementation of RawBatchBuffer starts writing incoming batches to disk once the buffer size reaches a threshold.
 The order of the incoming buffers is maintained.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.drill.exec.work.batch.BaseRawBatchBufferBaseRawBatchBuffer.BufferQueue<T>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final longstatic final longFields inherited from class org.apache.drill.exec.work.batch.BaseRawBatchBufferbufferQueue, bufferSizePerSocket, context, enableDynamicFC, outOfMemory
- 
Constructor SummaryConstructorsConstructorDescriptionSpoolingRawBatchBuffer(FragmentContext context, int fragmentCount, int oppositeId, int bufferIndex, boolean enableDynamicFC) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()protected voidenqueueInner(RawFragmentBatch batch) implementation specific method to enqueue batchgetDir()voidkill(FragmentContext context) protected voidupkeep(RawFragmentBatch batch) Handle miscellaneous tasks after batch retrievalMethods inherited from class org.apache.drill.exec.work.batch.BaseRawBatchBufferenqueue, getFragmentCount, getNext, isTerminated
- 
Field Details- 
ALLOCATOR_INITIAL_RESERVATIONpublic static final long ALLOCATOR_INITIAL_RESERVATION- See Also:
 
- 
ALLOCATOR_MAX_RESERVATIONpublic static final long ALLOCATOR_MAX_RESERVATION- See Also:
 
 
- 
- 
Constructor Details- 
SpoolingRawBatchBufferpublic SpoolingRawBatchBuffer(FragmentContext context, int fragmentCount, int oppositeId, int bufferIndex, boolean enableDynamicFC) 
 
- 
- 
Method Details- 
getDir
- 
enqueueInnerDescription copied from class:BaseRawBatchBufferimplementation specific method to enqueue batch- Specified by:
- enqueueInnerin class- BaseRawBatchBuffer<org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer.RawFragmentBatchWrapper>
- Parameters:
- batch-
- Throws:
- IOException
 
- 
kill- Specified by:
- killin interface- RawFragmentBatchProvider
- Overrides:
- killin class- BaseRawBatchBuffer<org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer.RawFragmentBatchWrapper>
 
- 
upkeepDescription copied from class:BaseRawBatchBufferHandle miscellaneous tasks after batch retrieval- Specified by:
- upkeepin class- BaseRawBatchBuffer<org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer.RawFragmentBatchWrapper>
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- RawFragmentBatchProvider
- Overrides:
- closein class- BaseRawBatchBuffer<org.apache.drill.exec.work.batch.SpoolingRawBatchBuffer.RawFragmentBatchWrapper>
 
 
-