| 771 | } |
| 772 | |
| 773 | Status 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 | |
| 788 | Status StructReader::BuildArray(int64_t length_upper_bound, |
| 789 | std::shared_ptr<ChunkedArray>* out) { |
no test coverage detected