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
datafusion_common::bisect - Rust
[go: Go Back, main page]

Expand description

This module provides the bisect function, which implements binary search.

Functions

This function implements both bisect_left and bisect_right, having the same semantics with the Python Standard Library. To use bisect_left, supply true as the template argument. To use bisect_right, supply false as the template argument.
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.