MCPcopy Index your code
hub / github.com/apache/orc / getSerializedFileTail

Method getSerializedFileTail

c++/src/Reader.cc:642–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640 }
641
642 std::string ReaderImpl::getSerializedFileTail() const {
643 proto::FileTail tail;
644 proto::PostScript* mutable_ps = tail.mutable_postscript();
645 mutable_ps->CopyFrom(*contents_->postscript);
646 proto::Footer* mutableFooter = tail.mutable_footer();
647 mutableFooter->CopyFrom(*footer_);
648 tail.set_file_length(fileLength_);
649 tail.set_postscript_length(postscriptLength_);
650 std::string result;
651 if (!tail.SerializeToString(&result)) {
652 throw ParseError("Failed to serialize file tail");
653 }
654 return result;
655 }
656
657 const ReaderOptions& ReaderImpl::getReaderOptions() const {
658 return options_;

Callers 3

TESTFunction · 0.45
printRawTailFunction · 0.45
createReaderFunction · 0.45

Calls 1

ParseErrorClass · 0.85

Tested by 1

TESTFunction · 0.36