MCPcopy Create free account
hub / github.com/pingcap/tidb / GetElemCount

Method GetElemCount

pkg/types/json_binary.go:286–288  ·  view source on GitHub ↗

GetElemCount gets the count of Object or Array.

()

Source from the content-addressed store, hash-verified

284
285// GetElemCount gets the count of Object or Array.
286func (bj BinaryJSON) GetElemCount() int {
287 return int(jsonEndian.Uint32(bj.Value))
288}
289
290// ArrayGetElem gets the element of the index `idx`.
291func (bj BinaryJSON) ArrayGetElem(idx int) BinaryJSON {

Callers 15

GetKeysMethod · 0.95
objectGetValMethod · 0.95
extractToMethod · 0.95
objectSearchKeyMethod · 0.95
GetElemDepthMethod · 0.95
extractToCallbackMethod · 0.95
WalkMethod · 0.95
jsonArrayExpr2ExprsFunction · 0.80
ArrayInsertMethod · 0.80
doInsertMethod · 0.80
doRemoveMethod · 0.80
rebuildToMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestGetKeysFunction · 0.64