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

Function MakeInputStreamIterator

cpp/src/arrow/io/interfaces.cc:135–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135Result<Iterator<std::shared_ptr<Buffer>>> MakeInputStreamIterator(
136 std::shared_ptr<InputStream> stream, int64_t block_size) {
137 if (stream->closed()) {
138 return Status::Invalid("Cannot take iterator on closed stream");
139 }
140 DCHECK_GT(block_size, 0);
141 return Iterator<std::shared_ptr<Buffer>>(InputStreamBlockIterator(stream, block_size));
142}
143
144struct RandomAccessFile::Impl {
145 std::mutex lock_;

Callers 1

TESTFunction · 0.85

Calls 3

InvalidFunction · 0.50
closedMethod · 0.45

Tested by 1

TESTFunction · 0.68