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

Method Roundtrip

cpp/src/arrow/c/bridge_test.cc:5230–5239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5228 }
5229
5230 void Roundtrip(std::shared_ptr<RecordBatchReader>* reader,
5231 struct ArrowDeviceArrayStream* c_stream) {
5232 ASSERT_OK(ExportDeviceRecordBatchReader(*reader, c_stream));
5233 ASSERT_FALSE(ArrowDeviceArrayStreamIsReleased(c_stream));
5234
5235 ASSERT_OK_AND_ASSIGN(
5236 auto got_reader,
5237 ImportDeviceRecordBatchReader(c_stream, TestDeviceArrayRoundtrip::DeviceMapper));
5238 *reader = std::move(got_reader);
5239 }
5240
5241 void Roundtrip(
5242 std::shared_ptr<RecordBatchReader> reader,

Callers

nothing calls this directly

Tested by

no test coverage detected