Class ExecutionContext
java.lang.Object
com.yahoo.vespa.indexinglanguage.expressions.ExecutionContext
- Author:
- Simon Thoresen Hult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclear()Clears all state in this except the cache.execute(Expression expression) getCache()Returns a mutable reference to the cache of this.getCachedValue(Object key) Returns a cached value, or null if not present.com.yahoo.document.datatypes.FieldValueOptional<com.yahoo.document.DocumentId>com.yahoo.document.datatypes.FieldValuegetFieldValue(com.yahoo.document.FieldPath fieldPath) com.yahoo.document.datatypes.FieldValuegetFieldValue(String fieldName) com.yahoo.language.Languagecom.yahoo.document.datatypes.FieldValuegetVariable(String name) booleanReturns whether this is for a complete execution of all statements of a script, or a partial execution of only the statements accessing the available data.booleanvoidputCachedValue(String key, Object value) com.yahoo.language.LanguageresolveLanguage(com.yahoo.language.Linguistics linguistics) setCurrentValue(com.yahoo.document.datatypes.FieldValue value) setDocumentId(com.yahoo.document.DocumentId id) setFieldValue(String fieldName, com.yahoo.document.datatypes.FieldValue fieldValue, Expression expression) setLanguage(com.yahoo.language.Language language) setVariable(String name, com.yahoo.document.datatypes.FieldValue value)
-
Constructor Details
-
ExecutionContext
public ExecutionContext() -
ExecutionContext
-
-
Method Details
-
execute
-
isComplete
public boolean isComplete()Returns whether this is for a complete execution of all statements of a script, or a partial execution of only the statements accessing the available data. -
getFieldValue
-
getFieldValue
public com.yahoo.document.datatypes.FieldValue getFieldValue(com.yahoo.document.FieldPath fieldPath) -
setFieldValue
public ExecutionContext setFieldValue(String fieldName, com.yahoo.document.datatypes.FieldValue fieldValue, Expression expression) -
getFieldValues
-
getVariable
-
setVariable
-
getCurrentValue
public com.yahoo.document.datatypes.FieldValue getCurrentValue() -
setCurrentValue
-
getCachedValue
Returns a cached value, or null if not present. -
putCachedValue
-
getCache
Returns a mutable reference to the cache of this. -
getLanguage
public com.yahoo.language.Language getLanguage() -
setLanguage
-
resolveLanguage
public com.yahoo.language.Language resolveLanguage(com.yahoo.language.Linguistics linguistics) -
isReindexingOperation
public boolean isReindexingOperation() -
setReindexingOperation
-
getDocumentId
-
setDocumentId
-
clear
Clears all state in this except the cache.
-