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

Method GetRepLevels

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

Source from the content-addressed store, hash-verified

861}
862
863Status StructReader::GetRepLevels(const int16_t** data, int64_t* length) {
864 *data = nullptr;
865 if (children_.size() == 0) {
866 *length = 0;
867 return Status::Invalid("StructReader had no children");
868 }
869
870 // This method should only be called when this struct or one of its parents
871 // are optional/repeated or it has repeated child.
872 // Meaning all children must have rep/def levels associated
873 // with them.
874 RETURN_NOT_OK(def_rep_level_child_->GetRepLevels(data, length));
875 return Status::OK();
876}
877
878Status StructReader::BuildArray(int64_t length_upper_bound,
879 std::shared_ptr<ChunkedArray>* out) {

Callers 3

GetRepLevelsMethod · 0.45
GetRepLevelsMethod · 0.45
BuildArrayMethod · 0.45

Calls 3

InvalidFunction · 0.50
OKFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected