Package com.schibsted.spt.data.jslt.impl
Class OptimizedStaticContainsFunction
java.lang.Object
com.schibsted.spt.data.jslt.impl.AbstractCallable
com.schibsted.spt.data.jslt.impl.AbstractFunction
com.schibsted.spt.data.jslt.impl.OptimizedStaticContainsFunction
An optimized version of contains(a, b) which is used when b is an
array literal with a large number of values, so that a linear
search becomes a performance drag.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOptimizedStaticContainsFunction
(com.fasterxml.jackson.databind.JsonNode array) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
call
(com.fasterxml.jackson.databind.JsonNode input, com.fasterxml.jackson.databind.JsonNode[] arguments) Perform the function on the given JSON input with the given arguments.Methods inherited from class com.schibsted.spt.data.jslt.impl.AbstractCallable
getMaxArguments, getMinArguments, getName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.schibsted.spt.data.jslt.Function
getMaxArguments, getMinArguments, getName
-
Field Details
-
values
-
-
Constructor Details
-
OptimizedStaticContainsFunction
public OptimizedStaticContainsFunction(com.fasterxml.jackson.databind.JsonNode array)
-
-
Method Details
-
call
public com.fasterxml.jackson.databind.JsonNode call(com.fasterxml.jackson.databind.JsonNode input, com.fasterxml.jackson.databind.JsonNode[] arguments) Description copied from interface:Function
Perform the function on the given JSON input with the given arguments.
-