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

Function ReadBatchFromJson

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

ReadRecordBatchMethod · 0.45

Tested by

no test coverage detected