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

Method IsSingleVal

pkg/sql/inverted/expression.go:105–107  ·  view source on GitHub ↗

IsSingleVal returns true iff the span is equivalent to [val, val].

()

Source from the content-addressed store, hash-verified

103
104// IsSingleVal returns true iff the span is equivalent to [val, val].
105func (s Span) IsSingleVal() bool {
106 return s.Start != nil && bytes.Equal(keysbase.PrefixEnd(s.Start), s.End)
107}
108
109// Equals returns true if this span has the same start and end as the given
110// span.

Callers 1

formatSpanFunction · 0.80

Calls 2

PrefixEndFunction · 0.92
EqualMethod · 0.45

Tested by

no test coverage detected