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
search_in_slice in datafusion::common::utils - Rust
[go: Go Back, main page]

Function search_in_slice

Source
pub fn search_in_slice<F>(
    item_columns: &[Arc<dyn Array>],
    target: &[ScalarValue],
    compare_fn: F,
    low: usize,
    high: usize,
) -> Result<usize, DataFusionError>
Expand description

This function searches for a tuple of given values (target) among a slice of the given rows (item_columns) via a linear scan. The slice starts at the index low and ends at the index high. The boolean-valued function compare_fn specifies the stopping criterion.