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

Method Write

cpp/src/arrow/dataset/file_parquet_test.cc:73–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 using FormatType = ParquetFileFormat;
72
73 static Result<std::shared_ptr<Buffer>> Write(
74 RecordBatchReader* reader,
75 const std::shared_ptr<ArrowWriterProperties>& arrow_properties =
76 default_arrow_writer_properties()) {
77 auto pool = ::arrow::default_memory_pool();
78 std::shared_ptr<Buffer> out;
79 auto sink = CreateOutputStream(pool);
80 RETURN_NOT_OK(WriteRecordBatchReader(reader, pool, sink, default_writer_properties(),
81 arrow_properties));
82 return sink->Finish();
83 }
84 static std::shared_ptr<ParquetFileFormat> MakeFormat() {
85 return std::make_shared<ParquetFileFormat>();
86 }

Callers 1

TEST_FFunction · 0.45

Calls 4

default_memory_poolFunction · 0.85
CreateOutputStreamFunction · 0.85
FinishMethod · 0.45

Tested by

no test coverage detected