| 846 | }; |
| 847 | |
| 848 | Status 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 | |
| 863 | Status StructReader::GetRepLevels(const int16_t** data, int64_t* length) { |
| 864 | *data = nullptr; |
no test coverage detected