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

Method DoStandardRoundTrip

cpp/src/arrow/ipc/read_write_test.cc:433–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431 }
432
433 Result<std::shared_ptr<RecordBatch>> DoStandardRoundTrip(
434 const RecordBatch& batch, const IpcWriteOptions& options,
435 DictionaryMemo* dictionary_memo,
436 const IpcReadOptions& read_options = IpcReadOptions::Defaults()) {
437 ARROW_ASSIGN_OR_RAISE(std::shared_ptr<Buffer> serialized_batch,
438 SerializeRecordBatch(batch, options));
439
440 io::BufferReader buf_reader(serialized_batch);
441 return ReadRecordBatch(batch.schema(), dictionary_memo, read_options, &buf_reader);
442 }
443
444 Result<std::shared_ptr<RecordBatch>> DoLargeRoundTrip(const RecordBatch& batch,
445 bool zero_data) {

Callers

nothing calls this directly

Calls 5

ARROW_ASSIGN_OR_RAISEFunction · 0.70
SerializeRecordBatchFunction · 0.70
ReadRecordBatchFunction · 0.70
DefaultsFunction · 0.50
schemaMethod · 0.45

Tested by

no test coverage detected