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

Method min

datafusion/functions-aggregate/src/min_max.rs:801–808  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

799 /// empty.
800 #[inline]
801 pub fn min(&self) -> Option<&T> {
802 match (self.push_stack.last(), self.pop_stack.last()) {
803 (None, None) => None,
804 (Some((_, min)), None) => Some(min),
805 (None, Some((_, min))) => Some(min),
806 (Some((_, a)), Some((_, b))) => Some(if a < b { a } else { b }),
807 }
808 }
809
810 /// Pushes a new element into the sliding window.
811 #[inline]

Callers 15

general_removeFunction · 0.45
generic_set_loopFunction · 0.45
create_args_with_countFunction · 0.45
process_map_arrayFunction · 0.45
byte_index_for_charFunction · 0.45
left_right_byte_lengthFunction · 0.45
repeat_to_bufferFunction · 0.45
output_scale_for_decimalFunction · 0.45
create_u8_arrayFunction · 0.45

Calls 1

lastMethod · 0.80

Tested by

no test coverage detected