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

Method DoStandardRoundTrip

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

Source from the content-addressed store, hash-verified

435 }
436
437 Result<std::shared_ptr<RecordBatch>> DoStandardRoundTrip(
438 const RecordBatch& batch, const IpcWriteOptions& options,
439 DictionaryMemo* dictionary_memo,
440 const IpcReadOptions& read_options = IpcReadOptions::Defaults()) {
441 ARROW_ASSIGN_OR_RAISE(std::shared_ptr<Buffer> serialized_batch,
442 SerializeRecordBatch(batch, options));
443
444 io::BufferReader buf_reader(serialized_batch);
445 return ReadRecordBatch(batch.schema(), dictionary_memo, read_options, &buf_reader);
446 }
447
448 Result<std::shared_ptr<RecordBatch>> DoLargeRoundTrip(const RecordBatch& batch,
449 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