| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/../../cpp/api/compute.html | [Back] [Original] |
Variant type for various Arrow C++ data structures.
Public Types
Public Functions
Construct from a Scalar.
Construct from an ArrayData.
Construct from an Array.
Construct from a ChunkedArray.
Construct from a RecordBatch.
Construct from a Table.
Construct from a ChunkedArray.
This can be expensive, prefer the shared_ptr<ChunkedArray> constructor
Construct from a RecordBatch.
This can be expensive, prefer the shared_ptr<RecordBatch> constructor
Construct from a Table.
This can be expensive, prefer the shared_ptr<Table> constructor
Copy from concrete subtypes of Scalar.
The concrete scalar type must be copyable (not all of them are).
Convenience constructor storing a bool scalar.
Convenience constructor storing an int8 scalar.
Convenience constructor storing a uint8 scalar.
Convenience constructor storing an int16 scalar.
Convenience constructor storing a uint16 scalar.
Convenience constructor storing an int32 scalar.
Convenience constructor storing a uint32 scalar.
Convenience constructor storing an int64 scalar.
Convenience constructor storing a uint64 scalar.
Convenience constructor storing a float scalar.
Convenience constructor storing a double scalar.
Convenience constructor storing a string scalar.
Convenience constructor storing a string scalar.
Convenience constructor for a DurationScalar from std::chrono::duration.
Retrieve the stored array as ArrayData.
Use make_array() if an Array is desired (which is more expensive).
std::bad_variant_access if the datum is not an array
The sum of bytes in each buffer referenced by the datum Note: Scalars report a size of 0.
See also
arrow::util::TotalBufferSize for caveats
Get the stored ArrayData in mutable form.
For internal use primarily. Keep in mind a shared_ptr<Datum> may have multiple owners.
Retrieve the stored array as Array.
std::bad_variant_access if the datum is not an array
Retrieve the chunked array stored.
std::bad_variant_access if the datum is not a chunked array
Retrieve the record batch stored.
std::bad_variant_access if the datum is not a record batch
Retrieve the table stored.
std::bad_variant_access if the datum is not a table
Retrieve the scalar stored.
std::bad_variant_access if the datum is not a scalar
Retrieve the datum as its concrete array type.
std::bad_variant_access if the datum is not an array
ExactType the expected array type, may cause undefined behavior if it is not the type of the stored array
Retrieve the datum as its concrete scalar type.
std::bad_variant_access if the datum is not a scalar
ExactType the expected scalar type, may cause undefined behavior if it is not the type of the stored scalar
Return the null count.
Only valid for scalar and array-like data.
The value type of the variant, if any.
nullptr if no type
The schema of the variant, if any.
nullptr if no schema
The value length of the variant, if any.
kUnknownLength if no type
The array chunks of the variant, if any.
empty if not arraylike
Public Members
Storage of the actual datum.
Note: For arrays, ArrayData is stored instead of Array for easier processing
Public Static Attributes
Datums variants may have a length.
This special value indicate that the current variant does not have a length.
A placeholder type to represent empty datum.
Contains the number of required arguments for the function.
Naming conventions taken from https://en.wikipedia.org/wiki/Arity.
Public Members
The number of required arguments (or the minimum number for varargs functions).
If true, then the num_args is the minimum number of required arguments.
Public Static Functions
Public Members
A one-line summary of the function, using a verb.
For example, Add two numeric arrays or scalars.
A detailed description of the function, meant to follow the summary.
Symbolic names (identifiers) for the function arguments.
Some bindings may use this to generate nicer function signatures.
Name of the options class, if any.
Whether options are required for function execution.
If false, then either the function does not have an options class or there is a usable default options value.
An executor of a function with a preconfigured kernel.
Public Functions
Initialize or re-initialize the preconfigured kernel.
This method may be called zero or more times. Depending on how the FunctionExecutor was obtained, it may already have been initialized.
Execute the preconfigured kernel with arguments that must fit it.
The method requires the arguments be castable to the preconfigured types.
args [in] Arguments to execute the function on
length [in] Length of arguments batch or -1 to default it. If the function has no parameters, this determines the batch length, defaulting to 0. Otherwise, if the function is scalar, this must equal the argument batchs inferred length or be -1 to default to it. This is ignored for vector functions.
Base class for compute functions.
Function implementations contain a collection of kernels which are implementations of the function for specific argument types. Selecting a viable kernel for executing a function is referred to as dispatching.
Subclassed by arrow::compute::detail::FunctionImpl< HashAggregateKernel >, arrow::compute::detail::FunctionImpl< ScalarAggregateKernel >, arrow::compute::detail::FunctionImpl< ScalarKernel >, arrow::compute::detail::FunctionImpl< VectorKernel >, arrow::compute::MetaFunction, arrow::compute::detail::FunctionImpl< KernelType >
Public Types
The kind of function, which indicates in what contexts it is valid for use.
Values:
A function that performs scalar data operations on whole arrays of data.
Can generally process Array or Scalar values. The size of the output will be the same as the size (or broadcasted size, in the case of mixing Array and Scalar inputs) of the input.
A function with array input and output whose behavior depends on the values of the entire arrays passed, rather than the value of each scalar value.
A function that computes scalar summary statistics from array input.
A function that computes grouped summary statistics from array input and an array of group identifiers.
A function that dispatches to other functions and does not contain its own kernels.
Public Functions
The name of the kernel. The registry enforces uniqueness of names.
The kind of kernel, which indicates in what contexts it is valid for use.
Contains the number of arguments the function requires, or if the function accepts variable numbers of arguments.
Return the function documentation.
Returns the number of registered kernels for this function.
Return a kernel that can execute the function given the exact argument types (without implicit type casts).
NB: This function is overridden in CastFunction.
Return a best-match kernel that can execute the function given the argument types, after implicit casts are applied.
values [inout] Argument types. An element may be modified to indicate that the returned kernel only approximately matches the input value descriptors; callers are responsible for casting inputs to the type required by the kernel.
Get a function executor with a best-matching kernel.
The returned executor will by default work with the default FunctionOptions and KernelContext. If you want to change that, call FunctionExecutor::Init.
Execute the function eagerly with the passed input arguments with kernel dispatch, batch iteration, and memory allocation details taken care of.
If the options pointer is null, then default_options() will be used.
This function can be overridden in subclasses.
Returns the default options for this function.
Whatever option semantics a Function has, implementations must guarantee that default_options() is valid to pass to Execute as options.
Returns the pure property for this function.
Impure functions are those that may return different results for the same input arguments. For example, a function that returns a random number is not pure. An expression containing only pure functions can be simplified by pre-evaluating any sub-expressions that have constant arguments.
A function that executes elementwise operations on arrays or scalars, and therefore whose results generally do not depend on the order of the values in the arguments.
Accepts and returns arrays that are all of the same size. These functions roughly correspond to the functions used in SQL expressions.
Public Functions
Add a kernel with given input/output types, no required state initialization, preallocation for fixed-width types, and default null handling (intersect validity bitmaps of inputs).
Add a kernel (function implementation).
Returns error if the kernels signature does not match the functions arity.
Returns the pure property for this function.
A function that executes general array operations that may yield outputs of different sizes or have results that depend on the whole array contents.
These functions roughly correspond to the functions found in non-SQL array languages like APL and its derivatives.
A function that dispatches to other functions.
Must implement MetaFunction::ExecuteImpl.
For Array, ChunkedArray, and Scalar Datum kinds, may rely on the execution of concrete Function types, but must handle other Datum kinds on its own.
Public Functions
Returns the number of registered kernels for this function.
Execute the function eagerly with the passed input arguments with kernel dispatch, batch iteration, and memory allocation details taken care of.
If the options pointer is null, then default_options() will be used.
This function can be overridden in subclasses.
Extension point for defining options outside libarrow (but still within this project).
Base class for specifying options configuring a functions behavior, such as error handling.
Subclassed by arrow::compute::ArithmeticOptions, arrow::compute::ArraySortOptions, arrow::compute::AssumeTimezoneOptions, arrow::compute::CastOptions, arrow::compute::CountOptions, arrow::compute::CumulativeOptions, arrow::compute::DayOfWeekOptions, arrow::compute::DictionaryEncodeOptions, arrow::compute::ElementWiseAggregateOptions, arrow::compute::ExtractRegexOptions, arrow::compute::ExtractRegexSpanOptions, arrow::compute::FilterOptions, arrow::compute::IndexOptions, arrow::compute::InversePermutationOptions, arrow::compute::JoinOptions, arrow::compute::ListFlattenOptions, arrow::compute::ListSliceOptions, arrow::compute::MakeStructOptions, arrow::compute::MapLookupOptions, arrow::compute::MatchSubstringOptions, arrow::compute::ModeOptions, arrow::compute::NullOptions, arrow::compute::PadOptions, arrow::compute::PairwiseOptions, arrow::compute::PartitionNthOptions, arrow::compute::PivotWiderOptions, arrow::compute::QuantileOptions, arrow::compute::RandomOptions, arrow::compute::RankOptions, arrow::compute::RankQuantileOptions, arrow::compute::ReplaceSliceOptions, arrow::compute::ReplaceSubstringOptions, arrow::compute::RoundBinaryOptions, arrow::compute::RoundOptions, arrow::compute::RoundTemporalOptions, arrow::compute::RoundToMultipleOptions, arrow::compute::RunEndEncodeOptions, arrow::compute::ScalarAggregateOptions, arrow::compute::ScatterOptions, arrow::compute::SelectKOptions, arrow::compute::SetLookupOptions, arrow::compute::SkewOptions, arrow::compute::SliceOptions, arrow::compute::SortOptions, arrow::compute::SplitOptions, arrow::compute::SplitPatternOptions, arrow::compute::StrftimeOptions, arrow::compute::StrptimeOptions, arrow::compute::StructFieldOptions, arrow::compute::TDigestOptions, arrow::compute::TakeOptions, arrow::compute::TrimOptions, arrow::compute::Utf8NormalizeOptions, arrow::compute::VarianceOptions, arrow::compute::WeekOptions, arrow::compute::WinsorizeOptions, arrow::compute::ZeroFillOptions
Public Functions
Public Static Functions
Deserialize an options struct from a buffer.
Note: this will only look for type_name in the default FunctionRegistry; to use a custom FunctionRegistry, look up the FunctionOptionsType, then call FunctionOptionsType::Deserialize().
One-shot executor provider for all types of functions.
This function creates and initializes a FunctionExecutor appropriate for the given function name, input types and function options.
One-shot executor provider for all types of functions.
This function creates and initializes a FunctionExecutor appropriate for the given function name, input types (taken from the Datum arguments) and function options.
A mutable central function registry for built-in functions as well as user-defined functions.
Functions are implementations of arrow::compute::Function.
Generally, each function contains kernels which are implementations of a function for a specific argument signature. After looking up a function in the registry, one can either execute it eagerly with Function::Execute or use one of the functions dispatch methods to pick a suitable kernel for lower-level function execution.
Public Functions
Check whether a new function can be added to the registry.
Status::KeyError if a function with the same name is already registered.
Add a new function to the registry.
Status::KeyError if a function with the same name is already registered.
Check whether an alias can be added for the given function name.
Status::KeyError if the function with the given name is not registered.
Add alias for the given function name.
Status::KeyError if the function with the given name is not registered.
Check whether a new function options type can be added to the registry.
Status::KeyError if a function options type with the same name is already registered.
Add a new function options type to the registry.
Status::KeyError if a function options type with the same name is already registered.
Retrieve a function by name from the registry.
Return vector of all entry names in the registry.
Helpful for displaying a manifest of available functions.
Retrieve a function options type by name from the registry.
The number of currently registered functions.
Public Static Functions
Construct a new registry.
Most users only need to use the global registry.
Construct a new nested registry with the given parent.
Most users only need to use the global registry. The returned registry never changes its parent, even when an operation allows overwriting.
Return the process-global function registry.
One-shot invoker for all types of functions.
Does kernel dispatch, argument checking, iteration of ChunkedArray inputs, and wrapping of outputs.
Variant of CallFunction which uses a functions default options.
NB: Some functions require FunctionOptions be provided.
One-shot invoker for all types of functions.
Does kernel dispatch, argument checking, iteration of ChunkedArray inputs, and wrapping of outputs.
Variant of CallFunction which uses a functions default options.
NB: Some functions require FunctionOptions be provided.
Rounding and tie-breaking modes for round compute functions.
Additional details and examples are provided in compute.rst.
Values:
Round to nearest integer less than or equal in magnitude (aka floor)
Round to nearest integer greater than or equal in magnitude (aka ceil)
Get the integral part without fractional digits (aka trunc)
Round negative values with DOWN rule and positive values with UP rule (aka away from zero)
Round ties with DOWN rule (also called round half towards negative infinity)
Round ties with UP rule (also called round half towards positive infinity)
Round ties with TOWARDS_ZERO rule (also called round half away from infinity)
Round ties with TOWARDS_INFINITY rule (also called round half away from zero)
Round ties to nearest even integer.
Round ties to nearest odd integer.
Values:
Values:
Control general scalar aggregate kernel behavior.
By default, null values are ignored (skip_nulls = true).
Public Functions
Public Members
If true (the default), null values are ignored.
Otherwise, if any value is null, emit null.
If less than this many non-null values are observed, emit null.
Public Static Functions
Public Static Attributes
Control count aggregate kernel behavior.
By default, only non-null values are counted.
Public Types
Public Functions
Public Static Functions
Public Static Attributes
Control Mode kernel behavior.
Returns top-n common values and counts. By default, returns the most common value and count.
Public Functions
Public Members
If true (the default), null values are ignored.
Otherwise, if any value is null, emit null.
If less than this many non-null values are observed, emit null.
Public Static Functions
Public Static Attributes
Control Delta Degrees of Freedom (ddof) of Variance and Stddev kernel.
The divisor used in calculations is N - ddof, where N is the number of elements. By default, ddof is zero, and population variance or stddev is returned.
Public Functions
Public Members
If true (the default), null values are ignored.
Otherwise, if any value is null, emit null.
If less than this many non-null values are observed, emit null.
Public Static Functions
Public Static Attributes
Control Skew and Kurtosis kernel behavior.
Public Functions
Public Members
If true (the default), null values are ignored.
Otherwise, if any value is null, emit null.
If true (the default), the calculated value is biased.
If false, the calculated value includes a correction factor to reduce bias, making it more accurate for small sample sizes.
If less than this many non-null values are observed, emit null.
Public Static Functions
Public Static Attributes
Control Quantile kernel behavior.
By default, returns the median value.
Public Types
Public Functions
Public Members
probability level of quantile must be between 0 and 1 inclusive
If true (the default), null values are ignored.
Otherwise, if any value is null, emit null.
If less than this many non-null values are observed, emit null.
Public Static Functions
Public Static Attributes
Control TDigest approximate quantile kernel behavior.
By default, returns the median value.
Public Functions
Public Members
probability level of quantile must be between 0 and 1 inclusive
compression parameter, default 100
input buffer size, default 500
If true (the default), null values are ignored.
Otherwise, if any value is null, emit null.
If less than this many non-null values are observed, emit null.
Public Static Functions
Public Static Attributes
Control Pivot kernel behavior.
These options apply to the pivot_wider and hash_pivot_wider functions.
Constraints:
The corresponding Aggregate::target must have two FieldRef elements; the first one points to the pivot key column, the second points to the pivoted data column.
The pivot key column can be string, binary or integer; its values will be matched against key_names in order to dispatch the pivoted data into the output. If the pivot key column is not string-like, the key_names will be cast to the pivot key type.
pivot_wider example
Assuming the following two input columns with types utf8 and int16 (respectively):
width | 11
height | 13
PivotWiderOptions(.key_names = {"height", "width"})
then the output will be a scalar with the type struct{"height": int16, "width": int16} and the value {"height": 13, "width": 11}.
hash_pivot_wider example
Assuming the following input with schema {"group": int32, "key": utf8, "value": int16}:
group | key | value
-----------------------------
1 | height | 11
1 | width | 12
2 | width | 13
3 | height | 14
3 | depth | 15
a hash grouping key group
Aggregate( .function = hash_pivot_wider, .options = PivotWiderOptions(.key_names = {height, width}), .target = {key, value}, .name = {properties})
then the output will have the schema {"group": int32, "properties": struct{"height": int16, "width": int16}} and the following value:
group | properties
| height | width
-----------------------------
1 | 11 | 12
2 | null | 13
3 | 14 | null
Public Types
Public Functions
Public Members
The values expected in the pivot key column.
The behavior when pivot keys not in key_names are encountered.
Public Static Functions
Public Static Attributes
Control Index kernel behavior.
Public Static Attributes
Configure a grouped aggregation.
Public Members
the name of the aggregation function
options for the aggregation function
optional output field name for aggregations
Public Functions
Public Members
Public Static Attributes
Public Functions
Public Members
Public Static Functions
Public Static Attributes
Public Functions
Public Members
Rounding precision (number of digits to round to)
Public Static Functions
Public Static Attributes
Public Functions
Public Static Functions
Public Static Attributes
Public Functions
Public Members
Number of units to round to.
The unit used for rounding of time.
What day does the week start with (Monday=true, Sunday=false)
Enable this flag to return a rounded value that is strictly greater than the input.
For example: ceiling 1970-01-01T00:00:00 to 3 hours would yield 1970-01-01T03:00:00 if set to true and 1970-01-01T00:00:00 if set to false. This applies for ceiling only.
By default time is rounded to a multiple of units since 1970-01-01T00:00:00.
By setting calendar_based_origin to true, time will be rounded to a number of units since the last greater calendar unit. For example: rounding to a multiple of days since the beginning of the month or to hours since the beginning of the day. Exceptions: week and quarter are not used as greater units, therefore days will will be rounded to the beginning of the month not week. Greater unit of week is year. Note that ceiling and rounding might change sorting order of an array near greater unit change. For example rounding YYYY-mm-dd 23:00:00 to 5 hours will ceil and round to YYYY-mm-dd+1 01:00:00 and floor to YYYY-mm-dd 20:00:00. On the other hand YYYY-mm-dd+1 00:00:00 will ceil, round and floor to YYYY-mm-dd+1 00:00:00. This can break the order of an already ordered array.
Public Static Functions
Public Static Attributes
Public Functions
Public Members
Public Static Functions
Public Static Attributes
Options for var_args_join.
Public Types
How to handle null values. (A null separator always results in a null output.)
Values:
A null in any input results in a null in the output.
Nulls in inputs are skipped.
Nulls in inputs are replaced with the replacement string.
Public Functions
Public Static Functions
Public Static Attributes
Public Functions
Public Members
The exact substring (or regex, depending on kernel) to look for inside input values.
Whether to perform a case-insensitive match.
Public Static Attributes
Public Functions
Public Members
Maximum number of splits allowed, or unlimited when -1.
Start splitting from the end of the string (only relevant when max_splits != -1)
Public Static Attributes
Public Functions
Public Members
The exact substring to split on.
Maximum number of splits allowed, or unlimited when -1.
Start splitting from the end of the string (only relevant when max_splits != -1)
Public Static Attributes
Public Functions
Public Members
Index to start slicing at.
Index to stop slicing at.
String to replace the slice with.
Public Static Attributes
Public Functions
Public Members
Pattern to match, literal, or regular expression depending on which kernel is used.
String to replace the pattern with.
Max number of substrings to replace (-1 means unbounded)
Public Static Attributes
Public Members
Regular expression with named capture fields.
Public Static Attributes
Public Members
Regular expression with named capture fields.
Public Static Attributes
Options for IsIn and IndexIn functions.
Public Types
How to handle null values.
Values:
MATCH, any null in value_set is successfully matched in the input.
SKIP, any null in value_set is ignored and nulls in the input produce null (IndexIn) or false (IsIn) values in the output.
EMIT_NULL, any null in value_set is ignored and nulls in the input produce null (IndexIn and IsIn) values in the output.
INCONCLUSIVE, null values are regarded as unknown values, which is sql-compatible.
nulls in the input produce null (IndexIn and IsIn) values in the output. Besides, if value_set contains a null, non-null unmatched values in the input also produce null values (IndexIn and IsIn) in the output.
Public Functions
Public Members
Whether nulls in value_set count for lookup.
If true, any null in value_set is ignored and nulls in the input produce null (IndexIn) or false (IsIn) values in the output. If false, any null in value_set is successfully matched in the input.
Public Static Attributes
Options for struct_field function.
Public Functions
Public Static Attributes
Public Functions
Public Members
The desired format string.
Return null on parsing errors if true or raise if false.
Public Static Attributes
Public Functions
Public Functions
Public Members
The desired string length.
What to pad the string with. Should be one codepoint (Unicode)/byte (ASCII).
What to do if there is an odd number of padding characters (in case of centered padding).
Defaults to aligning on the left (i.e. adding the extra padding character on the right)
Public Static Attributes
Public Functions
Public Members
The desired string length.
What to pad the string with. Should be one codepoint (Unicode).
Public Static Attributes
Public Members
The individual characters to be trimmed from the string.
Public Static Attributes
Public Functions
Public Static Attributes
Public Functions
Public Members
The start of list slicing.
Optional stop of list slicing. If not set, then slice to end. (NotImplemented)
Slicing step.
Public Static Attributes
Public Functions
Public Members
Public Static Functions
Public Static Attributes
Public Members
Public Members
Names for wrapped columns.
Nullability bits for wrapped columns.
Metadata attached to wrapped columns.
Public Static Attributes
Public Functions
Public Members
Number days from 0 if true and from 1 if false.
What day does the week start with (Monday=1, Sunday=7).
The numbering is unaffected by the count_from_zero parameter.
Public Static Functions
Public Static Attributes
Used to control timestamp timezone conversion and handling ambiguous/nonexistent times.
Public Types
How to interpret ambiguous local times that can be interpreted as multiple instants (normally two) due to DST shifts.
AMBIGUOUS_EARLIEST emits the earliest instant amongst possible interpretations. AMBIGUOUS_LATEST emits the latest instant amongst possible interpretations.
Values:
How to handle local times that do not exist due to DST shifts.
NONEXISTENT_EARLIEST emits the instant just before the DST shift instant in the given timestamp precision (for example, for a nanoseconds precision timestamp, this is one nanosecond before the DST shift instant). NONEXISTENT_LATEST emits the DST shift instant.
Values:
Public Functions
Public Members
Timezone to convert timestamps from.
How to interpret nonexistent local times (due to DST shifts)
Public Static Attributes
Public Functions
Public Members
What day does the week start with (Monday=true, Sunday=false)
Dates from current year that fall into last ISO week of the previous year return 0 if true and 52 or 53 if false.
Must the first week be fully in January (true), or is a week that begins on December 29, 30, or 31 considered to be the first week of the new year (false)?
Public Static Functions
Public Static Attributes
Public Static Functions
Public Static Attributes
Public Members
The type of initialization for random number generation - system or provided seed.
The seed value used to initialize the random number generation.
Public Static Functions
Public Static Attributes
Options for map_lookup function.
Public Types
Public Members
Whether to return the first, last, or all matching values.
Public Static Attributes
Public Types
Public Functions
Public Members
Public Static Functions
Public Static Attributes
Public Functions
Public Members
Public Static Functions
Public Static Attributes
Options for the dictionary encode function.
Public Types
Public Functions
Public Members
Public Static Functions
Public Static Attributes
Options for the run-end encode function.
Public Functions
Public Static Functions
Public Static Attributes
Public Functions
Public Members
Sorting order.
Whether nulls and NaNs are placed at the start or at the end.
Public Static Functions
Public Static Attributes
Public Functions
Convenience constructor to create an ordering from SortOptions.
Note: Both classes contain the exact same information. However, sort_options should only be used in a function options context while Ordering is used more generally.
Get sort_keys with overwritten null_placement Will be removed after deprecated null_placement has been removed.
Public Members
Column key(s) to order by and how to order by these sort keys.
Whether nulls and NaNs are placed at the start or at the end Will overwrite null ordering of sort keys.
Public Static Functions
Public Static Attributes
SelectK options.
Public Functions
Get sort_keys will be removed after null_placement has been removed from other SortOptions-like structs.
Public Members
The number of k elements to keep.
Column key(s) to order by and how to order by these sort keys.
Public Static Functions
Public Static Attributes
Rank options.
Public Types
Configure how ties between equal values are handled.
Values:
Ties get the smallest possible rank in sorted order.
Ties get the largest possible rank in sorted order.
Ranks are assigned in order of when ties appear in the input.
This ensures the ranks are a stable permutation of the input.
The ranks span a dense [1, M] interval where M is the number of distinct values in the input.
Public Functions
Convenience constructor for array inputs.
Convenience constructor for array inputs.
Get sort_keys with overwritten null_placement Will be removed after deprecated null_placement has been removed.
Public Members
Column key(s) to order by and how to order by these sort keys.
Whether nulls and NaNs are placed at the start or at the end Will overwrite null ordering of sort keys.
Tiebreaker for dealing with equal values in ranks.
Public Static Functions
Public Static Attributes
Quantile rank options.
Public Functions
Convenience constructor for array inputs.
Get sort_keys with overwritten null_placement Will be removed after deprecated null_placement has been removed.
Public Members
Column key(s) to order by and how to order by these sort keys.
Whether nulls and NaNs are placed at the start or at the end Will overwrite null ordering of sort keys.
Public Static Functions
Public Static Attributes
Partitioning options for NthToIndices.
Public Functions
Public Members
The index into the equivalent sorted array of the partition pivot element.
Whether nulls and NaNs are partitioned at the start or at the end.
Public Static Attributes
Public Functions
Public Members
The quantile below which all values are replaced with the quantiles value.
For example, if lower_limit = 0.05, then all values in the lower 5% percentile will be replaced with the 5% percentile value.
The quantile above which all values are replaced with the quantiles value.
For example, if upper_limit = 0.95, then all values in the upper 95% percentile will be replaced with the 95% percentile value.
Public Static Attributes
Options for cumulative functions.
Note
Also aliased as CumulativeSumOptions for backward compatibility
Public Functions
Public Members
Optional starting value for cumulative operation computation, default depends on the operation and input type.
sum: 0
prod: 1
min: maximum of the input type
max: minimum of the input type
mean: start is ignored because it has no meaning for mean
If true, nulls in the input are ignored and produce a corresponding null output.
When false, the first null encountered is propagated through the remaining output.
Public Static Functions
Public Static Attributes
Options for pairwise functions.
Public Functions
Public Members
Periods to shift for applying the binary operation, accepts negative values.
Public Static Functions
Public Static Attributes
Options for list_flatten function.
Public Functions
Public Members
If true, the list is flattened recursively until a non-list array is formed.
Public Static Functions
Public Static Attributes
Options for inverse_permutation function.
Public Functions
Public Members
The max value in the input indices to allow.
The length of the functions output will be this value plus 1. If negative, this value will be set to the length of the input indices minus 1 and the length of the functions output will be the length of the input indices.
The data type for the output array of inverse permutation.
Defaults to the type of the input indices when nullopt. Must be a signed integer type. An invalid error will be reported if this type is not able to store the length of the input indices.
Public Static Functions
Public Static Attributes
Options for scatter function.
Public Functions
Public Members
The max value in the input indices to allow.
The length of the functions output will be this value plus 1. If negative, this value will be set to the length of the input indices minus 1 and the length of the functions output will be the length of the input indices.
Public Static Functions
Public Static Attributes
Public Functions
true if the safety options all match CastOptions::Safe
Note, if this returns false it does not mean is_unsafe will return true
true if the safety options all match CastOptions::Unsafe
Note, if this returns false it does not mean is_safe will return true
Public Members
Public Static Functions
Public Static Attributes
Assemble a list of all fields referenced by an Expression at any depth.
Check if the expression references any fields.
Assemble a mapping from field references to known values.
This derives known values from equal and is_null Expressions referencing a field and a literal.
An unbound expression which maps a single Datum to another Datum.
An expression is one of
A literal Datum.
A reference to a single (potentially nested) field of the input Datum.
A call to a compute function, with arguments specified by other Expressions.
Public Functions
Bind this expression to the given input type, looking up Kernels and field types.
Some expression simplification may be performed and implicit casts will be inserted. Any state necessary for execution will be initialized and returned.
Return true if all an expressions field references have explicit types and all of its functions kernels are looked up.
Return true if this expression is composed only of Scalar literals, field references, and calls to ScalarFunctions.
Return true if this expression is literal and entirely null.
Return true if this expression could evaluate to true.
Will return true for any unbound or non-boolean Expressions. IsSatisfiable does not (currently) do any canonicalization or simplification of the expression, so even Expressions which are unsatisfiable may spuriously return true here. This function is intended for use in predicate pushdown where a filter expression is simplified by a guarantee, so it assumes that trying to simplify again would be redundant.
Weak canonicalization which establishes guarantees for subsequent passes.
Even equivalent Expressions may result in different canonicalized expressions. TODO this could be a strong canonicalization
Simplify Expressions based on literal arguments (for example, add(null, x) will always be null so replace the call with a null literal).
Includes early evaluation of all calls whose arguments are entirely literal.
Simplify Expressions by replacing with known values of the fields which it references.
Simplify an expression by replacing subexpressions based on a guarantee: a boolean expression which is guaranteed to evaluate to true.
For example, this is used to remove redundant function calls from a filter expression or to replace a reference to a constant-value field with a literal.
Replace all named field refs (e.g.
x or x.y) with field paths (e.g. [0] or [1,3])
This isnt usually needed and does not offer any simplification by itself. However, it can be useful to normalize an expression to paths to make it simpler to work with.
| Web Proxy Viewer | New URL | Original Page |