MCPcopy Create free account
hub / github.com/apache/arrow / hash

Method hash

cpp/src/arrow/compute/expression.cc:266–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266size_t Expression::hash() const {
267 if (auto lit = literal()) {
268 if (lit->is_scalar()) {
269 return lit->scalar()->hash();
270 }
271 return 0;
272 }
273
274 if (auto ref = field_ref()) {
275 return ref->hash();
276 }
277
278 return CallNotNull(*this)->hash;
279}
280
281bool Expression::IsBound() const {
282 if (type() == nullptr) return false;

Callers 2

ComputeHashMethod · 0.45
operator()Method · 0.45

Calls 5

field_refFunction · 0.85
CallNotNullFunction · 0.85
is_scalarMethod · 0.80
literalFunction · 0.70
scalarMethod · 0.45

Tested by

no test coverage detected