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

Method Make

cpp/src/arrow/json/reader.cc:502–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500} // namespace
501
502Result<std::shared_ptr<TableReader>> TableReader::Make(
503 MemoryPool* pool, std::shared_ptr<io::InputStream> input,
504 const ReadOptions& read_options, const ParseOptions& parse_options) {
505 std::shared_ptr<TableReaderImpl> ptr;
506 if (read_options.use_threads) {
507 ptr = std::make_shared<TableReaderImpl>(pool, read_options, parse_options,
508 TaskGroup::MakeThreaded(GetCpuThreadPool()));
509 } else {
510 ptr = std::make_shared<TableReaderImpl>(pool, read_options, parse_options,
511 TaskGroup::MakeSerial());
512 }
513 RETURN_NOT_OK(ptr->Init(input));
514 return ptr;
515}
516
517Future<std::shared_ptr<StreamingReader>> StreamingReader::MakeAsync(
518 std::shared_ptr<io::InputStream> stream, const ReadOptions& read_options,

Callers

nothing calls this directly

Calls 3

GetCpuThreadPoolFunction · 0.85
InitMethod · 0.45
resultMethod · 0.45

Tested by

no test coverage detected