MCPcopy Create free account
hub / github.com/apache/impala / Open

Method Open

be/src/kudu/util/pb_util.cc:900–910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898}
899
900Status ReadablePBContainerFile::Open() {
901 DCHECK_EQ(FileState::NOT_INITIALIZED, state_);
902 RETURN_NOT_OK(ParsePBFileHeader(reader_.get(), &cached_file_size_, &offset_, &version_));
903 ContainerSupHeaderPB sup_header;
904 RETURN_NOT_OK(ReadSupplementalHeader(reader_.get(), version_, &cached_file_size_,
905 &offset_, &sup_header));
906 protos_.reset(sup_header.release_protos());
907 pb_type_ = sup_header.pb_type();
908 state_ = FileState::OPEN;
909 return Status::OK();
910}
911
912Status ReadablePBContainerFile::ReadNextPB(Message* msg) {
913 DCHECK_EQ(FileState::OPEN, state_);

Callers 5

GenerateMethod · 0.45
TEST_PFunction · 0.45
DumpPBCToStringMethod · 0.45
ReadPBContainerFromPathFunction · 0.45
TEST_FFunction · 0.45

Calls 5

ParsePBFileHeaderFunction · 0.85
ReadSupplementalHeaderFunction · 0.85
OKFunction · 0.85
getMethod · 0.65
resetMethod · 0.65

Tested by 3

TEST_PFunction · 0.36
DumpPBCToStringMethod · 0.36
TEST_FFunction · 0.36