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

Method DoSchemaRoundTrip

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

Source from the content-addressed store, hash-verified

422 }
423
424 void DoSchemaRoundTrip(const Schema& schema, std::shared_ptr<Schema>* result) {
425 ASSERT_OK_AND_ASSIGN(std::shared_ptr<Buffer> serialized_schema,
426 SerializeSchema(schema, options_.memory_pool));
427
428 DictionaryMemo in_memo;
429 io::BufferReader buf_reader(serialized_schema);
430 ASSERT_OK_AND_ASSIGN(*result, ReadSchema(&buf_reader, &in_memo));
431 }
432
433 Result<std::shared_ptr<RecordBatch>> DoStandardRoundTrip(
434 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