Core (dw::Core)
This module contains core DataWeave functions for data transformations. It is automatically imported into any DataWeave script. For documentation on DataWeave 1.0 functions, see DataWeave Operators.
Functions
Name | Description |
---|---|
Concatenates two values. |
|
Removes specified values from an input value. |
|
Returns the absolute value of a number. |
|
Returns the average of numbers listed in an array. |
|
Rounds a number up to the nearest whole number. |
|
Returns |
|
Returns the number of days between two dates. |
|
Iterates over an array and returns the unique elements in it. |
|
Returns |
|
Returns an array of key-value pairs that describe the key, value, and any attributes in the input object. |
|
Iterates over an array and applies an expression that returns matching values. |
|
Iterates a list of key-value pairs in an object and applies an expression that returns only matching objects, filtering out the rest from the output. |
|
Returns indices of an input that match a specified value. |
|
Iterates over each item in an array and flattens the results. |
|
Turns a set of subarrays (such as [ |
|
Rounds a number down to the nearest whole number. |
|
Returns an object that groups items from an array based on specified criteria, such as an expression or matching selector. |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Merges an array into a single string value and uses the provided string as a separator between each item in the list. |
|
Returns an array of keys from key-value pairs within the input object. |
|
Without changing the value of the input, |
|
Returns the provided string in lowercase characters. |
|
Iterates over items in an array and outputs the results into a new array. |
|
Iterates over an object using a mapper that acts on keys, values, or indices of that object. |
|
Uses a Java regular expression (regex) to match a string and then separates it into capture groups. Returns the results in an array. |
|
Checks if an expression matches the entire input string. |
|
Returns the highest |
|
Iterates over an array and returns the highest value of
|
|
Returns the lowest |
|
Iterates over an array to return the lowest value of comparable elements from it. |
|
Returns the modulo (the remainder after dividing the |
|
Returns an array of strings with the names of all the keys within the given object. |
|
Internal method used to indicate that a function implementation is not written in DataWeave but in Scala. |
|
Returns a |
|
Reorders the elements of an input using criteria that acts on selected elements of that input. |
|
Useful for mapping an object into an array, |
|
Raises the value of a |
|
Returns a pseudo-random number greater than or equal to |
|
Returns a pseudo-random whole number from |
|
Reads a string or binary and returns parsed content. |
|
Similar to the |
|
Applies a reduction expression to the elements in an array. |
|
Performs string replacement. |
|
Rounds a number up or down to the nearest whole number. |
|
Returns an array with all of the matches found in an input string. |
|
Returns the number of elements in an array. It returns |
|
Splits a string into a string array based on a value that matches part of that string. It filters out the matching part from the returned array. |
|
Returns the square root of a number. |
|
Returns |
|
Returns the sum of numeric values in an array. |
|
Returns a range with the specified boundaries. |
|
Removes any blank spaces from the beginning and end of a string. |
|
Returns the type of a value. |
|
Performs the opposite of |
|
Returns the provided string in uppercase characters. |
|
Returns a v4 UUID using random numbers as the source. |
|
Returns an array of the values from key-value pairs in an object. |
|
When used with |
|
Writes a value as a string or binary in a supported format. |
|
Creates a |
|
Merges elements from two arrays into an array of arrays. |