Module datafusion_common::utils
source · Expand description
This module provides the bisect function, which implements binary search.
Functions
- This function searches for a tuple of given values (
target) among the given rows (item_columns) using the bisection algorithm. It assumes thatitem_columnsis sorted according tosort_optionsand returns the insertion index oftarget. Template argumentSIDEbeingtrue/falsemeans left/right insertion. - This function compares two tuples depending on the given sort options.
- This function searches for a tuple of given values (
target) among a slice of the given rows (item_columns) using the bisection algorithm. The slice starts at the indexlowand ends at the indexhigh. The boolean-valued functioncompare_fnspecifies whether we bisect on the left (by returningfalse), or on the right (by returningtrue) when we compare the target value with the current value as we iteratively bisect the input. - Given column vectors, returns row at
idx. - This function searches for a tuple of given values (
target) among the given rows (item_columns) via a linear scan. It assumes thatitem_columnsis sorted according tosort_optionsand returns the insertion index oftarget. Template argumentSIDEbeingtrue/falsemeans left/right insertion. - Wraps identifier string in double quotes, escaping any double quotes in the identifier by replacing it with two double quotes
- 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 indexlowand ends at the indexhigh. The boolean-valued functioncompare_fnspecifies the stopping criterion.