V
- the type of the value this Filter receivespublic class ScriptFilter<V> extends AbstractScript implements Filter<V>
Filter
that wraps a script written in one of the
languages supported by Graal VM.m_aoArgs, m_sLanguage, m_sName
Constructor and Description |
---|
ScriptFilter()
Default constructor for deserialization.
|
ScriptFilter(String language,
String name,
Object... args)
Create a
Filter that wraps the specified script. |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(V entry)
Apply the test to the input argument.
|
readExternal, readExternal, writeExternal, writeExternal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, asLimitFilter, associatedWith, forKeys, forPartitions, or, xor
public ScriptFilter()
public ScriptFilter(String language, String name, Object... args)
Filter
that wraps the specified script.language
- the language the script is written. Currently, only
"js"
(for JavaScript) is supportedname
- the name of the Filter
that needs to
be evaluatedargs
- the arguments to be passed to the script during
evaluation