public class SortRecordBatchBuilder extends Object implements AutoCloseable
| Constructor and Description |
|---|
SortRecordBatchBuilder(BufferAllocator a) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(RecordBatchData rbd) |
boolean |
add(VectorAccessible batch)
Add another record batch to the set of record batches.
|
void |
build(FragmentContext context,
VectorContainer outputContainer) |
void |
build(VectorContainer outputContainer) |
void |
clear() |
void |
close() |
List<VectorContainer> |
getHeldRecordBatches() |
SelectionVector4 |
getSv4() |
boolean |
isEmpty() |
static long |
memoryNeeded(int recordCount)
For given record count, return the memory that SortRecordBatchBuilder needs
for its own purpose.
|
public SortRecordBatchBuilder(BufferAllocator a)
public boolean add(VectorAccessible batch)
(RecordBatchData) method into one method.batch - SchemaChangeExceptionpublic void add(RecordBatchData rbd)
public boolean isEmpty()
public void build(FragmentContext context, VectorContainer outputContainer) throws SchemaChangeException
SchemaChangeExceptionpublic void build(VectorContainer outputContainer) throws SchemaChangeException
SchemaChangeExceptionpublic SelectionVector4 getSv4()
public void clear()
public void close()
close in interface AutoCloseablepublic List<VectorContainer> getHeldRecordBatches()
public static long memoryNeeded(int recordCount)
recordCount - expected output record countCopyright © 2017 The Apache Software Foundation. All rights reserved.