| 756 | }; |
| 757 | |
| 758 | Status 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 | |
| 773 | Status StructReader::GetRepLevels(const int16_t** data, int64_t* length) { |
| 774 | *data = nullptr; |
no test coverage detected