Package | Description |
---|---|
com.bazaarvoice.jolt | |
com.bazaarvoice.jolt.modifier | |
com.bazaarvoice.jolt.modifier.function | |
com.bazaarvoice.jolt.modifier.spec |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,Function> |
Modifier.STOCK_FUNCTIONS |
Constructor and Description |
---|
Defaultr(java.lang.Object spec,
java.util.Map<java.lang.String,Function> functionsMap) |
Definr(java.lang.Object spec,
java.util.Map<java.lang.String,Function> functionsMap) |
Modifier(java.lang.Object spec,
OpMode opMode,
java.util.Map<java.lang.String,Function> functionsMap) |
Overwritr(java.lang.Object spec,
java.util.Map<java.lang.String,Function> functionsMap) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,Function> |
TemplatrSpecBuilder.functionsMap |
Constructor and Description |
---|
TemplatrSpecBuilder(OpMode opMode,
java.util.Map<java.lang.String,Function> functionsMap) |
Modifier and Type | Class and Description |
---|---|
static class |
Function.ArgDrivenFunction<SOURCE,RETTYPE>
Deprecated.
Abstract class that provides rudimentary abstraction to quickly implement
a function that classifies first arg as special input and rest as regular
input.
|
static class |
Function.ArgDrivenListFunction<S>
Deprecated.
Extends ArgDrivenConverter to provide rudimentary abstraction to quickly
implement a function that works on an input list|array
i.e.
|
static class |
Function.ArgDrivenSingleFunction<S,R>
Deprecated.
Extends ArgDrivenConverter to provide rudimentary abstraction to quickly
implement a function that works on a single input
i.e.
|
static class |
Function.BaseFunction<T>
Deprecated.
Abstract class that processes var-args and calls two abstract methods
If its single list arg, or many args, calls applyList()
else calls applySingle()
|
static class |
Function.ListFunction
Deprecated.
Abstract class that provides rudimentary abstraction to quickly implement
a function that works on an List of input
i.e.
|
static class |
Function.SingleFunction<T>
Deprecated.
Abstract class that provides rudimentary abstraction to quickly implement
a function that works on an single value input
i.e.
|
static class |
Function.SquashFunction<T>
Deprecated.
squashNull is a special kind of null processing,the input is always a list or map as a singleton
|
static class |
Lists.elementAt
Given an index at arg[0], and a list at arg[1] or args[1...N], return element at index of list or array
|
static class |
Lists.firstElement
Given a list, return the first element
|
static class |
Lists.lastElement
Given a list, return the last element
|
static class |
Lists.sort
Given an arbitrary list of items, returns a new array of them in sorted state
|
static class |
Lists.toList
Given an arbitrary number of arguments, return them as list
|
static class |
Math.abs |
static class |
Math.avg |
static class |
Math.divide |
static class |
Math.divideAndRound |
static class |
Math.doubleSubtract |
static class |
Math.doubleSum |
static class |
Math.intSubtract |
static class |
Math.intSum |
static class |
Math.longSubtract |
static class |
Math.longSum |
static class |
Math.max |
static class |
Math.min |
static class |
Objects.recursivelySquashNulls |
static class |
Objects.size
Size is a special snowflake and needs specific care
|
static class |
Objects.squashNulls |
static class |
Objects.toBoolean |
static class |
Objects.toDouble |
static class |
Objects.toInteger |
static class |
Objects.toLong |
static class |
Objects.toString |
static class |
Strings.concat |
static class |
Strings.join |
static class |
Strings.leftPad |
static class |
Strings.rightPad |
static class |
Strings.split |
static class |
Strings.substring |
static class |
Strings.toLowerCase |
static class |
Strings.toUpperCase |
static class |
Strings.trim |
Modifier and Type | Field and Description |
---|---|
private Function |
FunctionEvaluator.function |
static Function |
Function.isNull
Deprecated.
Returns the first argument if it is null
spec - "key": ["=inNull", "otherValue" ]
input - "key": null
output - "key": null
input - "key": "value"
output - "key": "otherValue"
|
static Function |
Function.isPresent
Deprecated.
Returns the first argument, null or otherwise
spec - "key": [ "=isPresent", "otherValue" ]
input - "key": null
output - "key": null
input - "key": "value"
output - "key": "value"
input - key is missing
output - "key": "otherValue"
|
static Function |
Function.noop
Deprecated.
Does nothing
spec - "key": "=noop"
will cause the key to remain unchanged
|
static Function |
Function.notNull
Deprecated.
Returns the first argument if in not null
spec - "key": ["=notNull", "otherValue" ]
input - "key": null
output - "key": "otherValue"
input - "key": "value"
output - "key": "value"
|
Modifier and Type | Method and Description |
---|---|
static FunctionEvaluator |
FunctionEvaluator.forFunctionEvaluation(Function function,
FunctionArg... functionArgs) |
Constructor and Description |
---|
FunctionEvaluator(Function function,
FunctionArg... functionArgs) |
Modifier and Type | Method and Description |
---|---|
private static FunctionEvaluator |
ModifierLeafSpec.buildFunctionEvaluator(java.lang.String rhs,
java.util.Map<java.lang.String,Function> functionsMap) |
Constructor and Description |
---|
ModifierLeafSpec(java.lang.String rawJsonKey,
java.lang.Object rhsObj,
OpMode opMode,
java.util.Map<java.lang.String,Function> functionsMap) |