Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
find_bisect_point in datafusion_common::bisect - Rust
[go: Go Back, main page]

pub fn find_bisect_point<F>(
    item_columns: &[ArrayRef],
    target: &[ScalarValue],
    compare_fn: F,
    low: usize,
    high: usize
) -> Result<usize>where
    F: Fn(&[ScalarValue], &[ScalarValue]) -> Result<bool>,
Expand description

This function searches for a tuple of target values among the given rows using the bisection algorithm. The boolean-valued function compare_fn specifies whether we bisect on the left (with return value false), or on the right (with return value true) as we compare the target value with the current value as we iteratively bisect the input.