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

Function WriteTable

cpp/src/parquet/arrow/writer.cc:591–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589}
590
591Status WriteTable(const ::arrow::Table& table, ::arrow::MemoryPool* pool,
592 std::shared_ptr<::arrow::io::OutputStream> sink, int64_t chunk_size,
593 std::shared_ptr<WriterProperties> properties,
594 std::shared_ptr<ArrowWriterProperties> arrow_properties) {
595 std::unique_ptr<FileWriter> writer;
596 ARROW_ASSIGN_OR_RAISE(
597 writer, FileWriter::Open(*table.schema(), pool, std::move(sink),
598 std::move(properties), std::move(arrow_properties)));
599 RETURN_NOT_OK(writer->WriteTable(table, chunk_size));
600 return writer->Close();
601}
602
603} // namespace parquet::arrow

Callers 15

WriteColumnFunction · 0.70
WriteTableToBufferFunction · 0.70
DoRoundtripFunction · 0.70
RoundTripSingleColumnMethod · 0.70
TYPED_TESTFunction · 0.70
TEST_FFunction · 0.70
TESTFunction · 0.70
TEST_PFunction · 0.70
DoMainFunction · 0.70
BM_WriteColumnFunction · 0.70

Calls 4

ARROW_ASSIGN_OR_RAISEFunction · 0.70
schemaMethod · 0.45
WriteTableMethod · 0.45
CloseMethod · 0.45

Tested by 10

WriteTableToBufferFunction · 0.56
DoRoundtripFunction · 0.56
RoundTripSingleColumnMethod · 0.56
TYPED_TESTFunction · 0.56
TEST_FFunction · 0.56
TESTFunction · 0.56
TEST_PFunction · 0.56
WriteTableToBufferFunction · 0.40