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.
()
| 209 | // the data will not be modified). This is important in the case of a window |
| 210 | // function, which might want to incrementally update an aggregation. |
| 211 | func (b *ArrayBuilder) Build() JSON { |
| 212 | return jsonArray(b.jsons) |
| 213 | } |
| 214 | |
| 215 | // ArrayBuilderWithCounter builds JSON Array by a JSON sequence with a size counter. |
| 216 | type ArrayBuilderWithCounter struct { |
no test coverage detected