|
iceberg-cpp
|
Base writer class to write data from different file formats. More...
#include <file_writer.h>
Public Member Functions | |
| Writer (const Writer &)=delete | |
| Writer & | operator= (const Writer &)=delete |
| virtual Status | Open (const WriterOptions &options)=0 |
| Open the writer. | |
| virtual Status | Close ()=0 |
| Close the writer. | |
| virtual Status | Write (ArrowArray *data)=0 |
| Write arrow data to the file. | |
| virtual Result< Metrics > | metrics ()=0 |
| Get the file statistics. Only valid after the file is closed. | |
| virtual Result< int64_t > | length ()=0 |
| Get the file length. This can be called while the writer is still open or after the file is closed. | |
| virtual std::vector< int64_t > | split_offsets ()=0 |
| Returns a list of recommended split locations, if applicable, empty otherwise. When available, this information is used for planning scan tasks whose boundaries are determined by these offsets. The returned list must be sorted in ascending order. Only valid after the file is closed. | |
Base writer class to write data from different file formats.
|
pure virtual |
Close the writer.
Implemented in iceberg::avro::AvroWriter, and iceberg::parquet::ParquetWriter.
|
pure virtual |
Get the file length. This can be called while the writer is still open or after the file is closed.
Implemented in iceberg::avro::AvroWriter, and iceberg::parquet::ParquetWriter.
|
pure virtual |
Get the file statistics. Only valid after the file is closed.
Implemented in iceberg::avro::AvroWriter, and iceberg::parquet::ParquetWriter.
|
pure virtual |
Open the writer.
Implemented in iceberg::avro::AvroWriter, and iceberg::parquet::ParquetWriter.
|
pure virtual |
Returns a list of recommended split locations, if applicable, empty otherwise. When available, this information is used for planning scan tasks whose boundaries are determined by these offsets. The returned list must be sorted in ascending order. Only valid after the file is closed.
Implemented in iceberg::avro::AvroWriter, and iceberg::parquet::ParquetWriter.
|
pure virtual |
Write arrow data to the file.
Implemented in iceberg::parquet::ParquetWriter, and iceberg::avro::AvroWriter.