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

Method GetRepLevels

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

Source from the content-addressed store, hash-verified

771}
772
773Status StructReader::GetRepLevels(const int16_t** data, int64_t* length) {
774 *data = nullptr;
775 if (children_.size() == 0) {
776 *length = 0;
777 return Status::Invalid("StructReader had no children");
778 }
779
780 // This method should only be called when this struct or one of its parents
781 // are optional/repeated or it has repeated child.
782 // Meaning all children must have rep/def levels associated
783 // with them.
784 RETURN_NOT_OK(def_rep_level_child_->GetRepLevels(data, length));
785 return Status::OK();
786}
787
788Status StructReader::BuildArray(int64_t length_upper_bound,
789 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