Class ExecutionContext

java.lang.Object
com.yahoo.vespa.indexinglanguage.expressions.ExecutionContext

public class ExecutionContext extends Object
Author:
Simon Thoresen Hult
  • Constructor Details

    • ExecutionContext

      public ExecutionContext()
    • ExecutionContext

      public ExecutionContext(FieldValues fieldValue)
  • Method Details

    • execute

      public ExecutionContext execute(Expression expression)
    • 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

      public com.yahoo.document.datatypes.FieldValue getFieldValue(String fieldName)
    • 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

      public FieldValues getFieldValues()
    • getVariable

      public com.yahoo.document.datatypes.FieldValue getVariable(String name)
    • setVariable

      public ExecutionContext setVariable(String name, com.yahoo.document.datatypes.FieldValue value)
    • getCurrentValue

      public com.yahoo.document.datatypes.FieldValue getCurrentValue()
    • setCurrentValue

      public ExecutionContext setCurrentValue(com.yahoo.document.datatypes.FieldValue value)
    • getCachedValue

      public Object getCachedValue(Object key)
      Returns a cached value, or null if not present.
    • putCachedValue

      public void putCachedValue(String key, Object value)
    • getCache

      public Map<Object,Object> getCache()
      Returns a mutable reference to the cache of this.
    • getLanguage

      public com.yahoo.language.Language getLanguage()
    • setLanguage

      public ExecutionContext setLanguage(com.yahoo.language.Language language)
    • resolveLanguage

      public com.yahoo.language.Language resolveLanguage(com.yahoo.language.Linguistics linguistics)
    • isReindexingOperation

      public boolean isReindexingOperation()
    • setReindexingOperation

      public ExecutionContext setReindexingOperation()
    • getDocumentId

      public Optional<com.yahoo.document.DocumentId> getDocumentId()
    • setDocumentId

      public ExecutionContext setDocumentId(com.yahoo.document.DocumentId id)
    • clear

      public ExecutionContext clear()
      Clears all state in this except the cache.