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

Function WriteTableToBuffer

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

Source from the content-addressed store, hash-verified

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