public class WriterRecordBatch extends AbstractRecordBatch<Writer>
AbstractRecordBatch.BatchStateRecordBatch.IterOutcomecontainer, context, oContext, popConfig, state, stats, unionTypeEnabledMAX_BATCH_SIZE| Constructor and Description |
|---|
WriterRecordBatch(Writer writer,
RecordBatch incoming,
FragmentContext context,
RecordWriter recordWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getRecordCount()
Gets the number of records that are within this record.
|
BatchSchema |
getSchema()
Gets the current schema of this record batch.
|
RecordBatch.IterOutcome |
innerNext() |
protected void |
killIncoming(boolean sendUpstream) |
protected void |
setupNewSchema() |
buildSchema, getContext, getOutgoingContainer, getPopConfig, getSelectionVector2, getSelectionVector4, getValueAccessorById, getValueVectorId, getWritableBatch, iterator, kill, next, next, nextpublic WriterRecordBatch(Writer writer, RecordBatch incoming, FragmentContext context, RecordWriter recordWriter) throws OutOfMemoryException
OutOfMemoryExceptionpublic int getRecordCount()
RecordBatchprotected void killIncoming(boolean sendUpstream)
killIncoming in class AbstractRecordBatch<Writer>public BatchSchema getSchema()
RecordBatch
May be called only when the most recent call to RecordBatch.next(), if any,
returned #OK_NEW_SCHEMA or #OK.
The schema changes when and only when RecordBatch.next() returns
#OK_NEW_SCHEMA.
getSchema in interface RecordBatchgetSchema in interface VectorAccessiblegetSchema in class AbstractRecordBatch<Writer>public RecordBatch.IterOutcome innerNext()
innerNext in class AbstractRecordBatch<Writer>protected void setupNewSchema()
throws IOException
IOExceptionpublic void close()
close in interface AutoCloseableclose in class AbstractRecordBatch<Writer>Copyright © 2017 The Apache Software Foundation. All rights reserved.