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

Method Make

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

Source from the content-addressed store, hash-verified

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