Constructor and Description |
---|
StreamCreator(Schema schema,
DictionaryProvider dictionaryProvider,
BufferAllocator allocator,
Consumer<Stream> committer)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ArrowRecordBatch batch) |
void |
complete()
Complete building the stream (no more batches can be added).
|
void |
drop()
Abandon creation of the stream.
|
public StreamCreator(Schema schema, DictionaryProvider dictionaryProvider, BufferAllocator allocator, Consumer<Stream> committer)
schema
- The schema for batches in the stream.dictionaryProvider
- The dictionary provider for the stream.allocator
- The allocator used to copy data permanently into the stream.committer
- A callback for when the stream is ready to be finalized (no more batches).public void drop()
public void add(ArrowRecordBatch batch)
public void complete()
Copyright © 2022 The Apache Software Foundation. All rights reserved.