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

Method Set

pkg/col/coldata/json.go:49–56  ·  view source on GitHub ↗

Set sets the ith JSON in JSONs.

(i int, j json.JSON)

Source from the content-addressed store, hash-verified

47
48// Set sets the ith JSON in JSONs.
49func (js *JSONs) Set(i int, j json.JSON) {
50 var err error
51 js.scratch, err = json.EncodeJSON(js.scratch[:0], j)
52 if err != nil {
53 colexecerror.ExpectedError(err)
54 }
55 js.Bytes.Set(i, js.scratch)
56}
57
58// Window creates a "window" into the receiver. It behaves similarly to
59// Golang's slice, but the returned object is *not* allowed to be modified - it

Callers

nothing calls this directly

Calls 3

EncodeJSONFunction · 0.92
ExpectedErrorFunction · 0.92
SetMethod · 0.65

Tested by

no test coverage detected