| 725 | } |
| 726 | |
| 727 | void WriteValidityField(const Array& arr) { |
| 728 | writer_->Key("VALIDITY"); |
| 729 | writer_->StartArray(); |
| 730 | if (arr.null_count() > 0) { |
| 731 | for (int i = 0; i < arr.length(); ++i) { |
| 732 | writer_->Int(arr.IsNull(i) ? 0 : 1); |
| 733 | } |
| 734 | } else { |
| 735 | for (int i = 0; i < arr.length(); ++i) { |
| 736 | writer_->Int(1); |
| 737 | } |
| 738 | } |
| 739 | writer_->EndArray(); |
| 740 | } |
| 741 | |
| 742 | void SetNoChildren() { |
| 743 | // Nothing. We used to write an empty "children" array member, |
nothing calls this directly
no test coverage detected