public abstract class ArrowWriter extends Object implements AutoCloseable
修飾子とタイプ | フィールドと説明 |
---|---|
protected static org.slf4j.Logger |
LOGGER |
protected WriteChannel |
out |
protected Schema |
schema |
修飾子 | コンストラクタと説明 |
---|---|
protected |
ArrowWriter(VectorSchemaRoot root,
DictionaryProvider provider,
WritableByteChannel out)
Note: fields are not closed when the writer is closed
|
修飾子とタイプ | メソッドと説明 |
---|---|
long |
bytesWritten() |
void |
close() |
void |
end() |
protected void |
endInternal(WriteChannel out) |
void |
start() |
protected void |
startInternal(WriteChannel out) |
void |
writeBatch() |
protected ArrowBlock |
writeDictionaryBatch(ArrowDictionaryBatch batch) |
protected ArrowBlock |
writeRecordBatch(ArrowRecordBatch batch) |
protected static final org.slf4j.Logger LOGGER
protected final Schema schema
protected final WriteChannel out
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
IOException
public void writeBatch() throws IOException
IOException
protected ArrowBlock writeDictionaryBatch(ArrowDictionaryBatch batch) throws IOException
IOException
protected ArrowBlock writeRecordBatch(ArrowRecordBatch batch) throws IOException
IOException
public void end() throws IOException
IOException
public long bytesWritten()
protected void startInternal(WriteChannel out) throws IOException
IOException
protected void endInternal(WriteChannel out) throws IOException
IOException
public void close()
close
インタフェース内 AutoCloseable
Copyright © 2018 The Apache Software Foundation. All rights reserved.