Package org.apache.drill.exec.record
Class WritableBatch
java.lang.Object
org.apache.drill.exec.record.WritableBatch
- All Implemented Interfaces:
AutoCloseable
A specialized version of record batch that can moves out buffers and preps
them for writing.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidclose()static WritableBatchget(VectorAccessible batch) static WritableBatchgetBatchNoHV(int recordCount, Iterable<ValueVector> vectors, boolean isSV2) static WritableBatchgetBatchNoHVWrap(int recordCount, Iterable<VectorWrapper<?>> vws, boolean isSV2) DrillBuf[]getDef()voidreconstructContainer(BufferAllocator allocator, VectorContainer container) voidretainBuffers(int increment) transfer(BufferAllocator allocator)
-
Method Details
-
transfer
-
getDef
-
getBuffers
-
reconstructContainer
-
clear
public void clear() -
getBatchNoHVWrap
public static WritableBatch getBatchNoHVWrap(int recordCount, Iterable<VectorWrapper<?>> vws, boolean isSV2) -
getBatchNoHV
public static WritableBatch getBatchNoHV(int recordCount, Iterable<ValueVector> vectors, boolean isSV2) -
get
-
retainBuffers
public void retainBuffers(int increment) -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-