|
iceberg-cpp
|
Writer for Puffin files. More...
#include <puffin_writer.h>
Public Member Functions | |
| Result< BlobMetadata > | Write (const Blob &blob) |
| Write a blob and return its metadata. | |
| Status | Finish () |
| Finalize the file by writing the footer and closing the stream. | |
| Status | Close () |
| Close the writer, finalizing the file if needed. | |
| const std::vector< BlobMetadata > & | written_blobs_metadata () const |
| Get metadata for all blobs written so far. | |
| Result< int64_t > | FooterSize () const |
| Get the footer size. Returns error if the footer has not been written. | |
| Result< int64_t > | FileSize () const |
| Get the total file size. Returns error if Finish() has not succeeded. | |
Static Public Member Functions | |
| static Result< std::unique_ptr< PuffinWriter > > | Make (std::unique_ptr< OutputFile > output_file, std::unordered_map< std::string, std::string > properties={}, PuffinCompressionCodec default_codec=PuffinCompressionCodec::kNone, bool compress_footer=false) |
| Create a PuffinWriter for the given output file. | |
Writer for Puffin files.
Writes blobs and footer to an OutputFile stream.
|
static |
Create a PuffinWriter for the given output file.
| output_file | The output file to write to. |
| properties | File-level properties to include in the footer. |
| default_codec | Default compression codec for blobs. |
| compress_footer | Whether to compress the footer payload. |