Class Function.ListFunction
- java.lang.Object
-
- com.bazaarvoice.jolt.modifier.function.Function.BaseFunction<java.lang.Object>
-
- com.bazaarvoice.jolt.modifier.function.Function.ListFunction
-
- All Implemented Interfaces:
Function
- Direct Known Subclasses:
Lists.firstElement,Lists.lastElement,Math.avg,Math.divide,Math.doubleSubtract,Math.doubleSum,Math.intSubtract,Math.intSum,Math.longSubtract,Math.longSum,Strings.concat,Strings.substring
- Enclosing interface:
- Function
public abstract static class Function.ListFunction extends Function.BaseFunction<java.lang.Object>
Abstract class that provides rudimentary abstraction to quickly implement a function that works on an List of input i.e. find the max item from a list, etc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.bazaarvoice.jolt.modifier.function.Function
Function.ArgDrivenFunction<SOURCE,RETTYPE>, Function.ArgDrivenListFunction<S>, Function.ArgDrivenSingleFunction<S,R>, Function.BaseFunction<T>, Function.ListFunction, Function.SingleFunction<T>, Function.SquashFunction<T>
-
-
Constructor Summary
Constructors Constructor Description ListFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Optional<java.lang.Object>applyList(java.util.List<java.lang.Object> argList)protected Optional<java.lang.Object>applySingle(java.lang.Object arg)-
Methods inherited from class com.bazaarvoice.jolt.modifier.function.Function.BaseFunction
apply
-
-
-
-
Method Detail
-
applyList
protected abstract Optional<java.lang.Object> applyList(java.util.List<java.lang.Object> argList)
- Specified by:
applyListin classFunction.BaseFunction<java.lang.Object>
-
applySingle
protected final Optional<java.lang.Object> applySingle(java.lang.Object arg)
- Specified by:
applySinglein classFunction.BaseFunction<java.lang.Object>
-
-