Package org.rumbledb.context
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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor is for Kryo deserialization purposes.Creates a new, empty module context (without parent).DynamicContext(DynamicContext parent) DynamicContext(DynamicContext parent, Map<Name, List<Item>> localVariableValues, Map<Name, org.apache.spark.api.java.JavaRDD<Item>> rddVariableValues, Map<Name, JSoundDataFrame> dataFrameVariableValues) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGlobalVariable(Name globalVariable) static Map<Name,DynamicContext.VariableDependency> intGets the top-level runtime iterator for XML tree building.static voidmergeVariableDependencies(Map<Name, DynamicContext.VariableDependency> into, Map<Name, DynamicContext.VariableDependency> from) static voidprintDependencies(Map<Name, DynamicContext.VariableDependency> exprDependency) voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidsetCurrentMutabilityLevel(int currentMutabilityLevel) voidsetNamedFunctions(NamedFunctions knownFunctions) voidsetTopLevelRuntimeIterator(RuntimeIterator topLevelRuntimeIterator) Sets the top-level runtime iterator for XML tree building.toString()voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
-
Constructor Details
-
DynamicContext
public DynamicContext()The default constructor is for Kryo deserialization purposes. -
DynamicContext
Creates a new, empty module context (without parent).- Parameters:
conf- the Rumble configuration.
-
DynamicContext
-
DynamicContext
-
-
Method Details
-
getRumbleRuntimeConfiguration
-
getVariableValues
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
writein interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.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
-
setNamedFunctions
-
getNamedFunctions
-
getModuleContext
-
getInScopeSchemaTypes
-
getCurrentDateTime
-
printDependencies
-
addGlobalVariable
-
getTopLevelRuntimeIterator
Gets the top-level runtime iterator for XML tree building.- Returns:
- the top-level runtime iterator, or null if not set
-
setTopLevelRuntimeIterator
Sets the top-level runtime iterator for XML tree building.- Parameters:
topLevelRuntimeIterator- the top-level runtime iterator to set
-