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

Function ReadBatchFromJson

cpp/src/arrow/integration/c_data_integration_internal.cc:65–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65Result<std::shared_ptr<RecordBatch>> ReadBatchFromJson(const std::string& json_path,
66 int num_batch, MemoryPool* pool) {
67 ARROW_ASSIGN_OR_RAISE(auto file, io::ReadableFile::Open(json_path, pool));
68 ARROW_ASSIGN_OR_RAISE(auto reader, IntegrationJsonReader::Open(pool, file));
69 return reader->ReadRecordBatch(num_batch);
70}
71
72// XXX ideally, we should allow use of a custom memory pool in the C bridge API,
73// but that requires non-trivial refactor

Callers

nothing calls this directly

Calls 1

ReadRecordBatchMethod · 0.45

Tested by

no test coverage detected