| 124 | } |
| 125 | |
| 126 | Status AppendNull() final { |
| 127 | // Append() a null list slot with list_length=0. |
| 128 | // |
| 129 | // When building [Large]List arrays, elements being appended to the values builder |
| 130 | // before the next call to Append* or Finish will extend the list slot length, but |
| 131 | // that is totally fine because list arrays admit non-empty null list slots. |
| 132 | // |
| 133 | // In the case of [Large]ListViews that's not a problem either because the |
| 134 | // list slot length remains zero. |
| 135 | return Append(false, 0); |
| 136 | } |
| 137 | |
| 138 | Status AppendNulls(int64_t length) final { |
| 139 | ARROW_RETURN_NOT_OK(Reserve(length)); |