public abstract class ArrowWriter extends Object implements AutoCloseable
| Modifier | Constructor and Description |
|---|---|
protected |
ArrowWriter(VectorSchemaRoot root,
DictionaryProvider provider,
WritableByteChannel out)
Note: fields are not closed when the writer is closed
|
| Modifier and Type | Method and Description |
|---|---|
long |
bytesWritten() |
void |
close() |
void |
end() |
protected abstract void |
endInternal(WriteChannel out,
Schema schema,
List<ArrowBlock> dictionaries,
List<ArrowBlock> records) |
void |
start() |
protected abstract void |
startInternal(WriteChannel out) |
void |
writeBatch() |
protected void |
writeRecordBatch(ArrowRecordBatch batch) |
protected ArrowWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out)
root - the vectors to write to the outputprovider - where to find the dictionariesout - the output where to writepublic void start()
throws IOException
IOExceptionpublic void writeBatch()
throws IOException
IOExceptionprotected void writeRecordBatch(ArrowRecordBatch batch) throws IOException
IOExceptionpublic void end()
throws IOException
IOExceptionpublic long bytesWritten()
protected abstract void startInternal(WriteChannel out) throws IOException
IOExceptionprotected abstract void endInternal(WriteChannel out, Schema schema, List<ArrowBlock> dictionaries, List<ArrowBlock> records) throws IOException
IOExceptionpublic void close()
close in interface AutoCloseableCopyright © 2017 The Apache Software Foundation. All rights reserved.