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

Method DoSchemaRoundTrip

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

Source from the content-addressed store, hash-verified

426 }
427
428 void DoSchemaRoundTrip(const Schema& schema, std::shared_ptr<Schema>* result) {
429 ASSERT_OK_AND_ASSIGN(std::shared_ptr<Buffer> serialized_schema,
430 SerializeSchema(schema, options_.memory_pool));
431
432 DictionaryMemo in_memo;
433 io::BufferReader buf_reader(serialized_schema);
434 ASSERT_OK_AND_ASSIGN(*result, ReadSchema(&buf_reader, &in_memo));
435 }
436
437 Result<std::shared_ptr<RecordBatch>> DoStandardRoundTrip(
438 const RecordBatch& batch, const IpcWriteOptions& options,

Callers

nothing calls this directly

Calls 3

SerializeSchemaFunction · 0.70
ReadSchemaFunction · 0.70
ASSERT_OK_AND_ASSIGNFunction · 0.50

Tested by

no test coverage detected