Build returns the constructed JSON array. A caller may not modify the array, and the ArrayBuilder reserves the right to re-use the array returned (though the data will not be modified). This is important in the case of a window function, which might want to incrementally update an aggregation.
()
| 288 | // the data will not be modified). This is important in the case of a window |
| 289 | // function, which might want to incrementally update an aggregation. |
| 290 | func (b *ArrayBuilder) Build() JSON { |
| 291 | return jsonArray(b.jsons) |
| 292 | } |
| 293 | |
| 294 | // ArrayBuilderWithCounter builds JSON Array by a JSON sequence with a size counter. |
| 295 | type ArrayBuilderWithCounter struct { |
no test coverage detected