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, writeBatch
public 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 ArrowWriter
IOException
protected ArrowBlock writeDictionaryBatch(ArrowDictionaryBatch batch) throws IOException
writeDictionaryBatch
in class ArrowWriter
IOException
protected ArrowBlock writeRecordBatch(ArrowRecordBatch batch) throws IOException
writeRecordBatch
in class ArrowWriter
IOException
protected void endInternal(WriteChannel out) throws IOException
endInternal
in class ArrowWriter
IOException
public List<ArrowBlock> getRecordBlocks()
public List<ArrowBlock> getDictionaryBlocks()
Copyright © 2020 The Apache Software Foundation. All rights reserved.