Class DynamicContext

java.lang.Object
org.rumbledb.context.DynamicContext
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable, Serializable

public class DynamicContext extends Object implements Serializable, com.esotericsoftware.kryo.KryoSerializable
See Also:
  • Constructor Details

    • DynamicContext

      public DynamicContext()
      The default constructor is for Kryo deserialization purposes.
    • DynamicContext

      public DynamicContext(RumbleRuntimeConfiguration conf)
      Creates a new, empty module context (without parent).
      Parameters:
      conf - the Rumble configuration.
    • DynamicContext

      public DynamicContext(DynamicContext parent)
    • DynamicContext

      public DynamicContext(DynamicContext parent, Map<Name,List<Item>> localVariableValues, Map<Name,org.apache.spark.api.java.JavaRDD<Item>> rddVariableValues, Map<Name,JSoundDataFrame> dataFrameVariableValues)
  • Method Details

    • getRumbleRuntimeConfiguration

      public RumbleRuntimeConfiguration getRumbleRuntimeConfiguration()
    • getVariableValues

      public VariableValues getVariableValues()
    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
    • getCurrentMutabilityLevel

      public int getCurrentMutabilityLevel()
    • setCurrentMutabilityLevel

      public void setCurrentMutabilityLevel(int currentMutabilityLevel)
    • mergeVariableDependencies

      public static void mergeVariableDependencies(Map<Name,DynamicContext.VariableDependency> into, Map<Name,DynamicContext.VariableDependency> from)
    • copyVariableDependencies

      public static Map<Name,DynamicContext.VariableDependency> copyVariableDependencies(Map<Name,DynamicContext.VariableDependency> from)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setNamedFunctions

      public void setNamedFunctions(NamedFunctions knownFunctions)
    • getNamedFunctions

      public NamedFunctions getNamedFunctions()
    • getModuleContext

      public DynamicContext getModuleContext()
    • getInScopeSchemaTypes

      public InScopeSchemaTypes getInScopeSchemaTypes()
    • getCurrentDateTime

      public OffsetDateTime getCurrentDateTime()
    • printDependencies

      public static void printDependencies(Map<Name,DynamicContext.VariableDependency> exprDependency)
    • addGlobalVariable

      public void addGlobalVariable(Name globalVariable)
    • getTopLevelRuntimeIterator

      public RuntimeIterator getTopLevelRuntimeIterator()
      Gets the top-level runtime iterator for XML tree building.
      Returns:
      the top-level runtime iterator, or null if not set
    • setTopLevelRuntimeIterator

      public void setTopLevelRuntimeIterator(RuntimeIterator topLevelRuntimeIterator)
      Sets the top-level runtime iterator for XML tree building.
      Parameters:
      topLevelRuntimeIterator - the top-level runtime iterator to set