public class Eval extends Directive
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
clearHashMapBetweenJoins |
protected javax.script.CompiledScript |
compiled |
protected java.lang.Object |
constructorParam |
protected QueryContext |
context |
protected ResultRow |
input |
protected java.util.HashMap<java.lang.String,java.lang.Object> |
objects |
protected java.lang.String |
script |
protected javax.script.ScriptEngine |
scriptEngine |
DEFAULT_COL, DEFAULT_NS| Constructor and Description |
|---|
Eval() |
Eval(java.lang.String script) |
Eval(java.lang.String script,
java.lang.Object param) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
debugStringParams() |
ResultIterator |
empty() |
void |
endQuery(QueryContext context)
Signals end of query and performs any cleanup that may be needed.
|
java.lang.Object |
eval(java.lang.Object val) |
java.lang.Object |
get(java.lang.String key) |
ResultIterator |
queryIterator(QueryContext context,
ResultRow input)
You must call startQuery before calling this and endQuery after you are
done with the result iterator.
|
java.lang.Object |
set(java.lang.String key,
java.lang.Object value) |
boolean |
startQuery(QueryContext context)
Prepares the query for execution.
|
as, as, debugString, debugString, debugStringInner, debugStringInner, debugStringInner, debugStringParams, doQuery, from, from, from, from, from, from, from, from, from, from, getStandardAddonHints, getStandardAddonHints, isStatic, join, main, of, query, to, to, to, to, to, where, whereprotected java.lang.String script
protected javax.script.ScriptEngine scriptEngine
protected javax.script.CompiledScript compiled
protected java.util.HashMap<java.lang.String,java.lang.Object> objects
protected java.lang.Object constructorParam
protected boolean clearHashMapBetweenJoins
protected ResultRow input
protected QueryContext context
public Eval()
public Eval(java.lang.String script,
java.lang.Object param)
public Eval(java.lang.String script)
public void endQuery(QueryContext context) throws QueryException
DirectiveendQuery in class DirectiveQueryExceptionpublic boolean startQuery(QueryContext context) throws QueryException
DirectivestartQuery in class DirectiveQueryExceptionpublic java.lang.String debugStringParams()
debugStringParams in class Directivepublic java.lang.Object eval(java.lang.Object val)
throws QueryException
QueryExceptionpublic java.lang.Object get(java.lang.String key)
public java.lang.Object set(java.lang.String key,
java.lang.Object value)
public ResultIterator empty()
public ResultIterator queryIterator(QueryContext context, ResultRow input) throws QueryException
DirectivequeryIterator in class DirectiveQueryExceptionCopyright 2004-2015 Wandora Team