MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Build

Method Build

pkg/util/json/json.go:290–292  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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.
290func (b *ArrayBuilder) Build() JSON {
291 return jsonArray(b.jsons)
292}
293
294// ArrayBuilderWithCounter builds JSON Array by a JSON sequence with a size counter.
295type ArrayBuilderWithCounter struct {

Callers 8

RemoveStringMethod · 0.95
buildArrayMethod · 0.45
buildObjectMethod · 0.45
json.goFile · 0.45
BuildMethod · 0.45
BuildMethod · 0.45

Calls 1

jsonArrayTypeAlias · 0.85

Tested by

no test coverage detected