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

Function MakeStreamingReaderFactory

cpp/src/arrow/csv/reader_test.cc:334–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334Result<StreamingReaderFactory> MakeStreamingReaderFactory() {
335 return [](std::shared_ptr<io::InputStream> input_stream)
336 -> Result<std::shared_ptr<StreamingReader>> {
337 auto read_options = ReadOptions::Defaults();
338 read_options.block_size = 1 << 10;
339 read_options.use_threads = true;
340 return StreamingReader::Make(io::default_io_context(), input_stream, read_options,
341 ParseOptions::Defaults(), ConvertOptions::Defaults());
342 };
343}
344
345TEST(StreamingReaderTests, Empty) { TestEmptyTable(MakeStreamingFactory()); }
346TEST(StreamingReaderTests, HeaderOnly) {

Callers

nothing calls this directly

Calls 2

DefaultsFunction · 0.50
MakeFunction · 0.50

Tested by

no test coverage detected