Expand description
This module provides the bisect function, which implements binary search.
Modules§
- Adopted from strsim-rs for string similarity metrics
- Expression utilities
- This module provides a function to estimate the memory size of a HashTable prior to allocation
VecAllocExtandRawTableAllocExtto help tracking of memory allocations- Utilities for working with strings
Structs§
Functions§
- array_
into_ fixed_ size_ list_ array Deprecated - array_
into_ large_ list_ array Deprecated Wrap an array into a single elementLargeListArray. For example[1, 2, 3]would be converted into[[1, 2, 3]] - array_
into_ list_ array Deprecated Wrap an array into a single elementListArray. For example[1, 2, 3]would be converted into[[1, 2, 3]] - array_
into_ list_ array_ nullable Deprecated Wrap an array into a single elementListArray. For example[1, 2, 3]would be converted into[[1, 2, 3]]The field in the list array is nullable. - array_
into_ list_ array_ with_ field_ name Deprecated - Wrap arrays into a single element
ListArray. - Get the base type of a data type.
- 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. - Recursively coerce and
FixedSizeListelements toList - A helper function to coerce base type in List.
- Computes the
skipandfetchparameters of a single limit that would be equivalent to two consecutive limits with the givenskip/fetchparameters. - This function compares two tuples depending on the given sort options.
- Given a list of 0 or more already sorted columns, finds the partition ranges that would partition equally across columns.
- 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 of each element in
targetsinsideitems. If one of the elements is absent initems, returns an error. - Helper function to convert a FixedSizeListArray into a vector of ArrayRefs.
- This function “takes” the elements at
indicesfrom the sliceitems. - Returns the estimated number of threads available for parallel execution.
- Given column vectors, returns row at
idx. - Checks whether the given index sequence is monotonically non-decreasing.
- 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. - Compute the number of dimensions in a list data type.
- Helper function to convert a ListArray into a vector of ArrayRefs.
- This function finds the longest prefix of the form 0, 1, 2, … within the collection
sequence. Examples: - Merges collections
firstandsecond, removes duplicates and sorts the result, returning it as aVec. - Applies an optional projection to a
SchemaRef, returning the projected schema - 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. - Calculates the set difference between sequences
firstandsecond, returning the result as aVec. Preserves the ordering offirst. - Transposes the given vector of vectors.