java.lang.Object
com.pervasive.datarush.functions.Formatting
Provides implementations of common formatting functions.
The format specification is defined by
Formatter.
Reference the Formatter documentation for the capabilities and limitations
of the formatting that is available. The format specification is not validated before being
used. Therefore errors in the format specification are not discovered until execution.
- See Also:
-
ScalarValuedFunctionDeriveFields
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScalarValuedFunctionformat(String format, ScalarValuedFunction... exprs) Format output values of the given functions using the given format.static ScalarValuedFunctionformat(String format, List<ScalarValuedFunction> exprs) Format the output values of the given functions using the given format.static ScalarValuedFunctionformatValues(String format, String[] fieldNames) Format values for the fields within a record token using the given format.
-
Constructor Details
-
Formatting
public Formatting()
-
-
Method Details
-
formatValues
Format values for the fields within a record token using the given format. The format must be valid for the types of the input fields.- Parameters:
format- format specification indicating how to format the token valuesfieldNames- names of the fields to supply to the formatter, order is relevant- Returns:
- a function that when applied formats input fields into a string using the given format
-
format
Format output values of the given functions using the given format. The format must be valid for the types of the input fields.- Parameters:
format- format specification indicating how to format the token valuesexprs- functions providing outputs to be formatted- Returns:
- a function that when applied formats input fields into a string using the given format
-
format
Format the output values of the given functions using the given format. The format must be valid for the types of the input fields.- Parameters:
format- format specification indicating how to format the token valuesexprs- functions providing outputs to be formatted- Returns:
- a function that when applied formats input fields into a string using the given format
-