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

Method GetRepLevels

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

Source from the content-addressed store, hash-verified

804}
805
806Status StructReader::GetRepLevels(const int16_t** data, int64_t* length) {
807 *data = nullptr;
808 if (children_.size() == 0) {
809 *length = 0;
810 return Status::Invalid("StructReader had no children");
811 }
812
813 // This method should only be called when this struct or one of its parents
814 // are optional/repeated or it has repeated child.
815 // Meaning all children must have rep/def levels associated
816 // with them.
817 RETURN_NOT_OK(def_rep_level_child_->GetRepLevels(data, length));
818 return Status::OK();
819}
820
821Status StructReader::BuildArray(int64_t length_upper_bound,
822 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