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

Method read

cpp/src/arrow/adapters/orc/adapter.cc:115–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 uint64_t getNaturalReadSize() const override { return 128 * 1024; }
114
115 void read(void* buf, uint64_t length, uint64_t offset) override {
116 ORC_ASSIGN_OR_THROW(int64_t bytes_read, file_->ReadAt(offset, length, buf));
117
118 if (static_cast<uint64_t>(bytes_read) != length) {
119 throw liborc::ParseError("Short read from arrow input file");
120 }
121 }
122
123 const std::string& getName() const override {
124 static const std::string filename("ArrowInputFile");

Callers 15

test_defaultMethod · 0.45
test_ignoreMethod · 0.45
test_errorMethod · 0.45
test_infer_typeMethod · 0.45
test_newMethod · 0.45
test_readMethod · 0.45
test_readMethod · 0.45
test_reader_backendMethod · 0.45
test_writeMethod · 0.45
test_createMethod · 0.45
test_appendMethod · 0.45
test_newMethod · 0.45

Calls 1

ParseErrorFunction · 0.50

Tested by 15

test_defaultMethod · 0.36
test_ignoreMethod · 0.36
test_errorMethod · 0.36
test_infer_typeMethod · 0.36
test_newMethod · 0.36
test_readMethod · 0.36
test_readMethod · 0.36
test_reader_backendMethod · 0.36
test_writeMethod · 0.36
test_createMethod · 0.36
test_appendMethod · 0.36
test_newMethod · 0.36