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

Method loadCurrentStripeFooter

c++/src/Reader.cc:1713–1724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1711 }
1712
1713 proto::StripeFooter ReaderImpl::loadCurrentStripeFooter(uint32_t stripeIndex,
1714 uint64_t& offset) const {
1715 // find stripe info
1716 if (stripeIndex >= static_cast<uint32_t>(footer_->stripes_size())) {
1717 throw std::logic_error("Illegal stripe index: " +
1718 to_string(static_cast<int64_t>(stripeIndex)));
1719 }
1720 const proto::StripeInformation currentStripeInfo =
1721 footer_->stripes(static_cast<int>(stripeIndex));
1722 offset = static_cast<uint64_t>(currentStripeInfo.offset());
1723 return getStripeFooter(currentStripeInfo, *contents_);
1724 }
1725
1726 std::map<uint32_t, RowGroupIndex> ReaderImpl::getRowGroupIndex(
1727 uint32_t stripeIndex, const std::set<uint32_t>& included) const {

Callers

nothing calls this directly

Calls 2

getStripeFooterFunction · 0.85
to_stringFunction · 0.70

Tested by

no test coverage detected