MCPcopy
hub / github.com/pingcap/tidb / HashCode

Method HashCode

pkg/planner/core/scalar_subq_expression.go:252–260  ·  view source on GitHub ↗

HashCode implements the Expression interface.

()

Source from the content-addressed store, hash-verified

250
251// HashCode implements the Expression interface.
252func (s *ScalarSubQueryExpr) HashCode() []byte {
253 if len(s.hashcode) != 0 {
254 return s.hashcode
255 }
256 s.hashcode = make([]byte, 0, 9)
257 s.hashcode = append(s.hashcode, expression.ScalarSubQFlag)
258 s.hashcode = codec.EncodeInt(s.hashcode, s.scalarSubqueryColID)
259 return s.hashcode
260}
261
262// CanonicalHashCode implements the Expression interface.
263func (s *ScalarSubQueryExpr) CanonicalHashCode() []byte {

Callers 1

CanonicalHashCodeMethod · 0.95

Calls 1

EncodeIntFunction · 0.92

Tested by

no test coverage detected