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

Method WriteTable

cpp/src/arrow/ipc/writer.cc:1164–1181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1162}
1163
1164Status RecordBatchWriter::WriteTable(const Table& table, int64_t max_chunksize) {
1165 TableBatchReader reader(table);
1166
1167 if (max_chunksize > 0) {
1168 reader.set_chunksize(max_chunksize);
1169 }
1170
1171 std::shared_ptr<RecordBatch> batch;
1172 while (true) {
1173 RETURN_NOT_OK(reader.ReadNext(&batch));
1174 if (batch == nullptr) {
1175 break;
1176 }
1177 RETURN_NOT_OK(WriteRecordBatch(*batch));
1178 }
1179
1180 return Status::OK();
1181}
1182
1183Status RecordBatchWriter::WriteTable(const Table& table) { return WriteTable(table, -1); }
1184

Callers 14

WriteMethod · 0.45
WriteIpcDataFunction · 0.45
WriteIpcDataFunction · 0.45
WriteTableFunction · 0.45
ARROW_ASSIGN_OR_RAISEFunction · 0.45
WriteInBatchesFunction · 0.45
GenInitialFileFunction · 0.45
RunMainFunction · 0.45
RunMainFunction · 0.45
writeTableMethod · 0.45

Calls 5

set_chunksizeMethod · 0.80
WriteRecordBatchFunction · 0.70
WriteTableFunction · 0.70
OKFunction · 0.50
ReadNextMethod · 0.45

Tested by 2

WriteIpcDataFunction · 0.36
WriteIpcDataFunction · 0.36