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

Method GetDefLevels

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

Source from the content-addressed store, hash-verified

846};
847
848Status StructReader::GetDefLevels(const int16_t** data, int64_t* length) {
849 *data = nullptr;
850 if (children_.size() == 0) {
851 *length = 0;
852 return Status::Invalid("StructReader had no children");
853 }
854
855 // This method should only be called when this struct or one of its parents
856 // are optional/repeated or it has a repeated child.
857 // Meaning all children must have rep/def levels associated
858 // with them.
859 RETURN_NOT_OK(def_rep_level_child_->GetDefLevels(data, length));
860 return Status::OK();
861}
862
863Status StructReader::GetRepLevels(const int16_t** data, int64_t* length) {
864 *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