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

Method GetDefLevels

cpp/src/parquet/arrow/reader.cc:758–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756};
757
758Status StructReader::GetDefLevels(const int16_t** data, int64_t* length) {
759 *data = nullptr;
760 if (children_.size() == 0) {
761 *length = 0;
762 return Status::Invalid("StructReader had no children");
763 }
764
765 // This method should only be called when this struct or one of its parents
766 // are optional/repeated or it has a repeated child.
767 // Meaning all children must have rep/def levels associated
768 // with them.
769 RETURN_NOT_OK(def_rep_level_child_->GetDefLevels(data, length));
770 return Status::OK();
771}
772
773Status StructReader::GetRepLevels(const int16_t** data, int64_t* length) {
774 *data = nullptr;

Callers 3

GetDefLevelsMethod · 0.45
GetDefLevelsMethod · 0.45
BuildArrayMethod · 0.45

Calls 3

InvalidFunction · 0.50
OKFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected