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

Function WriteTableToBuffer

cpp/src/parquet/arrow/arrow_reader_writer_test.cc:405–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403using ParquetWriter = TypedColumnWriter<ParquetDataType<T>>;
404
405Result<std::shared_ptr<Buffer>> WriteTableToBuffer(
406 const std::shared_ptr<Table>& table, int64_t row_group_size,
407 const std::shared_ptr<WriterProperties>& properties = default_writer_properties(),
408 const std::shared_ptr<ArrowWriterProperties>& arrow_properties =
409 default_arrow_writer_properties()) {
410 auto sink = CreateOutputStream();
411 ARROW_RETURN_NOT_OK(WriteTable(*table, ::arrow::default_memory_pool(), sink,
412 row_group_size, properties, arrow_properties));
413 return sink->Finish();
414}
415
416void WriteTableToBuffer(const std::shared_ptr<Table>& table, int64_t row_group_size,
417 const std::shared_ptr<ArrowWriterProperties>& arrow_properties,

Callers 6

DoSimpleRoundtripFunction · 0.70
DoRoundTripWithBatchesFunction · 0.70
TESTFunction · 0.70
TestGetRecordBatchReaderFunction · 0.70
WriteSimpleMethod · 0.70
TEST_PFunction · 0.70

Calls 8

CreateOutputStreamFunction · 0.85
default_memory_poolFunction · 0.85
WriteTableFunction · 0.70
ASSERT_OK_AND_ASSIGNFunction · 0.70
BuilderFunction · 0.50
FinishMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected