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

Method Prev

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

Prev returns the previous datum and true, if one exists, or nil and false. The previous datum satisfies the following definition: if the receiver is "b" and the returned datum is "a", then for every compatible datum "x", it holds that "x < b" is true if and only if "x <= a" is true. The return valu

(ctx context.Context, cmpCtx CompareContext)

Source from the content-addressed store, hash-verified

145 // weaker contract. The original filter expression is left in place to catch
146 // false positives.
147 Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)
148
149 // IsMin returns true if the datum is equal to the minimum value the datum
150 // type can hold.

Callers 4

PrevMethod · 0.65
PrevMethod · 0.65
PrevMethod · 0.65
DatumPrevFunction · 0.65

Implementers 15

DTuplepkg/sql/sem/tree/datum.go
DArraypkg/sql/sem/tree/datum.go
Placeholderpkg/sql/sem/tree/expr.go
dNullpkg/sql/sem/tree/datum.go
DBitArraypkg/sql/sem/tree/datum.go
DDecimalpkg/sql/sem/tree/datum.go
DCollatedStringpkg/sql/sem/tree/datum.go
DUuidpkg/sql/sem/tree/datum.go
DIPAddrpkg/sql/sem/tree/datum.go
DDatepkg/sql/sem/tree/datum.go
DTimeTZpkg/sql/sem/tree/datum.go
DTimestamppkg/sql/sem/tree/datum.go

Calls

no outgoing calls

Tested by

no test coverage detected