public class ArrowFileWriter extends ArrowWriter
ArrowWriter that writes out a Arrow files (https://arrow.apache.org/docs/format/IPC.html#file-format).option, out, schema| Constructor and Description |
|---|
ArrowFileWriter(VectorSchemaRoot root,
DictionaryProvider provider,
WritableByteChannel out) |
ArrowFileWriter(VectorSchemaRoot root,
DictionaryProvider provider,
WritableByteChannel out,
IpcOption option) |
ArrowFileWriter(VectorSchemaRoot root,
DictionaryProvider provider,
WritableByteChannel out,
Map<String,String> metaData) |
ArrowFileWriter(VectorSchemaRoot root,
DictionaryProvider provider,
WritableByteChannel out,
Map<String,String> metaData,
IpcOption option) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
endInternal(WriteChannel out) |
List<ArrowBlock> |
getDictionaryBlocks() |
List<ArrowBlock> |
getRecordBlocks() |
protected void |
startInternal(WriteChannel out) |
protected ArrowBlock |
writeDictionaryBatch(ArrowDictionaryBatch batch) |
protected ArrowBlock |
writeRecordBatch(ArrowRecordBatch batch) |
bytesWritten, close, end, start, writeBatchpublic ArrowFileWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out)
public ArrowFileWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, Map<String,String> metaData)
public ArrowFileWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, IpcOption option)
public ArrowFileWriter(VectorSchemaRoot root, DictionaryProvider provider, WritableByteChannel out, Map<String,String> metaData, IpcOption option)
protected void startInternal(WriteChannel out) throws IOException
startInternal in class ArrowWriterIOExceptionprotected ArrowBlock writeDictionaryBatch(ArrowDictionaryBatch batch) throws IOException
writeDictionaryBatch in class ArrowWriterIOExceptionprotected ArrowBlock writeRecordBatch(ArrowRecordBatch batch) throws IOException
writeRecordBatch in class ArrowWriterIOExceptionprotected void endInternal(WriteChannel out) throws IOException
endInternal in class ArrowWriterIOExceptionpublic List<ArrowBlock> getRecordBlocks()
public List<ArrowBlock> getDictionaryBlocks()
Copyright © 2020 The Apache Software Foundation. All rights reserved.