MCPcopy Create free account
hub / github.com/apache/datafusion / add

Method add

datafusion/functions-aggregate/src/hyperloglog.rs:105–108  ·  view source on GitHub ↗

Adds an element to the HyperLogLog.

(&mut self, obj: &T)

Source from the content-addressed store, hash-verified

103
104 /// Adds an element to the HyperLogLog.
105 pub fn add(&mut self, obj: &T) {
106 let hash = self.hash_value(obj);
107 self.add_hashed(hash);
108 }
109
110 /// Adds a pre-computed hash value directly to the HyperLogLog.
111 ///

Calls 2

add_hashedMethod · 0.80
hash_valueMethod · 0.45

Tested by 8

roundtrip_named_variantsFunction · 0.36
roundtrip_metrics_setFunction · 0.36
test_oneFunction · 0.36
test_u8Function · 0.36
test_repetitionFunction · 0.36