Expand description
This module provides the bisect function, which implements binary search.
Modules§
- datafusion_
strsim - Adopted from strsim-rs for string similarity metrics
- expr
- Expression utilities
- memory
- This module provides a function to estimate the memory size of a HashTable prior to allocation
- proxy
VecAllocExtandRawTableAllocExtto help tracking of memory allocations- string_
utils - Utilities for working with strings
Structs§
- Single
RowList Array Builder - Creates single element
ListArray,LargeListArrayandFixedSizeListArrayfrom other arrays
Enums§
- List
Coercion - Information about how to coerce lists.
Functions§
- arrays_
into_ list_ array - Wrap arrays into a single element
ListArray. - base_
type - Get the base type of a data type.
- bisect
- 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. - coerced_
fixed_ size_ list_ to_ list - Recursively coerce and
FixedSizeListelements toList - coerced_
type_ with_ base_ type_ only - A helper function to coerce base type in List.
- combine_
limit - Computes the
skipandfetchparameters of a single limit that would be equivalent to two consecutive limits with the givenskip/fetchparameters. - compare_
rows - This function compares two tuples depending on the given sort options.
- evaluate_
partition_ ranges - Given a list of 0 or more already sorted columns, finds the partition ranges that would partition equally across columns.
- extract_
row_ at_ idx_ to_ buf - Extracts a row at the specified index from a set of columns and stores it in the provided buffer.
- find_
bisect_ point - 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. - find_
indices - Find indices of each element in
targetsinsideitems. If one of the elements is absent initems, returns an error. - fixed_
size_ list_ to_ arrays - Helper function to convert a FixedSizeListArray into a vector of ArrayRefs.
- get_
at_ indices - This function “takes” the elements at
indicesfrom the sliceitems. - get_
available_ parallelism - Returns the estimated number of threads available for parallel execution.
- get_
row_ at_ idx - Given column vectors, returns row at
idx. - linear_
search - 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. - list_
ndims - Compute the number of dimensions in a list data type.
- list_
to_ arrays - Helper function to convert a ListArray into a vector of ArrayRefs.
- longest_
consecutive_ prefix - This function finds the longest prefix of the form 0, 1, 2, … within the
collection
sequence. Examples: - merge_
and_ order_ indices - Merges collections
firstandsecond, removes duplicates and sorts the result, returning it as aVec. - project_
schema - Applies an optional projection to a
SchemaRef, returning the projected schema - quote_
identifier - Wraps identifier string in double quotes, escaping any double quotes in the identifier by replacing it with two double quotes
- search_
in_ slice - 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. - set_
difference - Calculates the set difference between sequences
firstandsecond, returning the result as aVec. Preserves the ordering offirst. - take_
function_ args - Converts a collection of function arguments into a fixed-size array of length N producing a reasonable error message in case of unexpected number of arguments.
- transpose
- Transposes the given vector of vectors.