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

Function MakeStreamingReader

cpp/src/arrow/csv/reader.cc:1138–1152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1136}
1137
1138Future<std::shared_ptr<StreamingReader>> MakeStreamingReader(
1139 io::IOContext io_context, std::shared_ptr<io::InputStream> input,
1140 Executor* cpu_executor, const ReadOptions& read_options,
1141 const ParseOptions& parse_options, const ConvertOptions& convert_options) {
1142 RETURN_NOT_OK(parse_options.Validate());
1143 RETURN_NOT_OK(read_options.Validate());
1144 RETURN_NOT_OK(convert_options.Validate());
1145 std::shared_ptr<StreamingReaderImpl> reader;
1146 reader = std::make_shared<StreamingReaderImpl>(
1147 io_context, input, read_options, parse_options, convert_options,
1148 /*count_rows=*/!read_options.use_threads || cpu_executor->GetCapacity() == 1);
1149 return reader->Init(cpu_executor).Then([reader] {
1150 return std::dynamic_pointer_cast<StreamingReader>(reader);
1151 });
1152}
1153
1154/////////////////////////////////////////////////////////////////////////
1155// Row count implementation

Callers 2

MakeMethod · 0.85
MakeAsyncMethod · 0.85

Calls 4

ThenMethod · 0.80
ValidateMethod · 0.45
GetCapacityMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected