Package org. partiql. lang. util
Types
Containing static methods intended to be invoked by Java clients, this class provides a standard way to compare identifiers and includes some helper methods for looking up values from IonStruct and Map instances according to the specified BindingCase.
A simple wrapper for writing Ion from Kotlin. This is not implemented as a set of extension methods because our coding standards disallow non-private extension methods.
See case for a description of how to use this[]
Functions
In Kotlin, the cases of a when <is <type>>...
must be exhaustive only when when
is used as an expression. Wrapping each of the cases in this is an attempt to allow when
to be easily used as an expression even when an expression isn't actually needed. Example:
One case insensitive equality check to rule them all.
Provides a lazy sequence over the code points in the given string.
Computes e^x of a given BigDecimal x.
Creates a new IonSexp from a legacy AST IonSexp that strips out meta nodes.
Returns true if any ExprValue in the Iterable is missing.
Returns true if any ExprValue in the Iterable is an unknown value, i.e. either MISSING or NULL.
Compute the natural logarithm of a big decimal.
Calculate the given big decimal raised to the pth power, where p is another big decimal.
Helper function to reduce the syntactical overhead of creating a PropertyValueMap.
Computes the square root of a given BigDecimal. See https://dl.acm.org/doi/pdf/10.1145/214408.214413