| 861 | } |
| 862 | |
| 863 | Status StructReader::GetRepLevels(const int16_t** data, int64_t* length) { |
| 864 | *data = nullptr; |
| 865 | if (children_.size() == 0) { |
| 866 | *length = 0; |
| 867 | return Status::Invalid("StructReader had no children"); |
| 868 | } |
| 869 | |
| 870 | // This method should only be called when this struct or one of its parents |
| 871 | // are optional/repeated or it has repeated child. |
| 872 | // Meaning all children must have rep/def levels associated |
| 873 | // with them. |
| 874 | RETURN_NOT_OK(def_rep_level_child_->GetRepLevels(data, length)); |
| 875 | return Status::OK(); |
| 876 | } |
| 877 | |
| 878 | Status StructReader::BuildArray(int64_t length_upper_bound, |
| 879 | std::shared_ptr<ChunkedArray>* out) { |
no test coverage detected