37 const std::string& filepath)
const = 0;
46 const std::string& filepath,
74 [[nodiscard]]
virtual bool is_open()
const = 0;
80 [[nodiscard]]
virtual std::vector<std::string>
101 const std::string& filepath,
virtual bool flush()=0
Flush buffered output without closing the file.
virtual bool open(const std::string &filepath, const Kakshya::CompositeLayout &layout)=0
Open a new file with the schema all subsequent slices must use.
virtual std::vector< std::string > get_supported_extensions() const =0
Get supported file extensions without dots.
virtual bool close()=0
Finish the file and release its output stream.
virtual std::string get_last_error() const =0
Get the last writer error.
virtual bool is_open() const =0
Check whether a file is currently open for writing.
virtual bool can_write(const std::string &filepath) const =0
Check whether this writer supports the target path.
virtual ~CompositeWriter()=default
virtual bool write_rows(const Kakshya::CompositeSlice &rows)=0
Write a bounded slice of elements.
Typed writer contract for schema-bearing Composite files.
Owns a sequence of values that share a CompositeLayout.
Shared field description and byte layout for a CompositeArray.
Borrowed consecutive elements, optionally selected by a Region.