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 TypeMethodDescriptionvoid
clear()
void
close()
static WritableBatch
get
(VectorAccessible batch) static WritableBatch
getBatchNoHV
(int recordCount, Iterable<ValueVector> vectors, boolean isSV2) static WritableBatch
getBatchNoHVWrap
(int recordCount, Iterable<VectorWrapper<?>> vws, boolean isSV2) DrillBuf[]
getDef()
void
reconstructContainer
(BufferAllocator allocator, VectorContainer container) void
retainBuffers
(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:
close
in interfaceAutoCloseable
-