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 TypeMethodDescriptionvoid
addGlobalVariable
(Name globalVariable) static Map<Name,
DynamicContext.VariableDependency> int
Gets the top-level runtime iterator for XML tree building.static void
mergeVariableDependencies
(Map<Name, DynamicContext.VariableDependency> into, Map<Name, DynamicContext.VariableDependency> from) static void
printDependencies
(Map<Name, DynamicContext.VariableDependency> exprDependency) void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
setCurrentMutabilityLevel
(int currentMutabilityLevel) void
setNamedFunctions
(NamedFunctions knownFunctions) void
setTopLevelRuntimeIterator
(RuntimeIterator topLevelRuntimeIterator) Sets the top-level runtime iterator for XML tree building.toString()
void
write
(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:
write
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in 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
-