MCPcopy Create free account
hub / github.com/apache/orc / ReaderImpl

Method ReaderImpl

c++/src/Reader.cc:627–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625 }
626
627 ReaderImpl::ReaderImpl(std::shared_ptr<FileContents> contents, const ReaderOptions& opts,
628 uint64_t fileLength, uint64_t postscriptLength)
629 : contents_(std::move(contents)),
630 options_(opts),
631 fileLength_(fileLength),
632 postscriptLength_(postscriptLength),
633 footer_(contents_->footer.get()) {
634 isMetadataLoaded_ = false;
635 checkOrcVersion();
636 numberOfStripes_ = static_cast<uint64_t>(footer_->stripes_size());
637 contents_->schema = convertType(footer_->types(0), *footer_);
638 contents_->blockSize = getCompressionBlockSize(*contents_->postscript);
639 contents_->compression = convertCompressionKind(*contents_->postscript);
640 }
641
642 std::string ReaderImpl::getSerializedFileTail() const {
643 proto::FileTail tail;

Callers

nothing calls this directly

Calls 4

convertTypeFunction · 0.85
getCompressionBlockSizeFunction · 0.85
convertCompressionKindFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected