MCPcopy Create free account
hub / github.com/apache/arrow / OpenWriter

Function OpenWriter

cpp/src/arrow/dataset/dataset_writer.cc:125–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123};
124
125Result<std::shared_ptr<FileWriter>> OpenWriter(
126 const FileSystemDatasetWriteOptions& write_options, std::shared_ptr<Schema> schema,
127 const std::string& filename) {
128 ARROW_ASSIGN_OR_RAISE(std::shared_ptr<io::OutputStream> out_stream,
129 write_options.filesystem->OpenOutputStream(filename));
130 return write_options.format()->MakeWriter(std::move(out_stream), std::move(schema),
131 write_options.file_write_options,
132 {write_options.filesystem, filename});
133}
134
135class DatasetWriterFileQueue
136 : public std::enable_shared_from_this<DatasetWriterFileQueue> {

Callers 1

StartMethod · 0.85

Calls 4

ARROW_ASSIGN_OR_RAISEFunction · 0.50
OpenOutputStreamMethod · 0.45
MakeWriterMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected