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

Method WriteTable

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

Source from the content-addressed store, hash-verified

1178}
1179
1180Status RecordBatchWriter::WriteTable(const Table& table, int64_t max_chunksize) {
1181 TableBatchReader reader(table);
1182
1183 if (max_chunksize > 0) {
1184 reader.set_chunksize(max_chunksize);
1185 }
1186
1187 std::shared_ptr<RecordBatch> batch;
1188 while (true) {
1189 RETURN_NOT_OK(reader.ReadNext(&batch));
1190 if (batch == nullptr) {
1191 break;
1192 }
1193 RETURN_NOT_OK(WriteRecordBatch(*batch));
1194 }
1195
1196 return Status::OK();
1197}
1198
1199Status RecordBatchWriter::WriteTable(const Table& table) { return WriteTable(table, -1); }
1200

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