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

Method Next

pkg/sql/sem/tree/datum.go:5106–5111  ·  view source on GitHub ↗

Next implements the Datum interface.

(ctx context.Context, cmpCtx CompareContext)

Source from the content-addressed store, hash-verified

5104
5105// Next implements the Datum interface.
5106func (d *DArray) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool) {
5107 a := DArray{ParamTyp: d.ParamTyp, Array: make(Datums, d.Len()+1)}
5108 copy(a.Array, d.Array)
5109 a.Array[len(a.Array)-1] = DNull
5110 return &a, true
5111}
5112
5113// Max implements the Datum interface.
5114func (d *DArray) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool) {

Callers

nothing calls this directly

Calls 1

LenMethod · 0.95

Tested by

no test coverage detected