Class LocalVariableMap
- java.lang.Object
-
- org.apache.sysds.runtime.controlprogram.LocalVariableMap
-
-
Constructor Summary
Constructors Constructor Description LocalVariableMap()
LocalVariableMap(LocalVariableMap vars)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
long
countPinnedData()
static LocalVariableMap
deserialize(String varStr)
Set<Map.Entry<String,Data>>
entrySet()
Data
get(String name)
Retrieves the data object given its name.double
getPinnedDataSize()
HashSet<String>
getRegisteredOutputs()
boolean
hasReferences(Data d)
Set<String>
keySet()
void
put(String name, Data val)
Adds a new (name, value) pair to the variable map, or replaces an old pair with the same name.void
putAll(Map<String,Data> vals)
void
putAll(LocalVariableMap vars)
Data
remove(String name)
void
removeAll()
void
removeAllIn(Set<String> excludeList)
void
removeAllNotIn(Set<String> excludeList)
String
serialize()
void
setRegisteredOutputs(HashSet<String> outputs)
String
toString()
-
-
-
Constructor Detail
-
LocalVariableMap
public LocalVariableMap()
-
LocalVariableMap
public LocalVariableMap(LocalVariableMap vars)
-
-
Method Detail
-
get
public Data get(String name)
Retrieves the data object given its name.- Parameters:
name
- the variable name for the data object- Returns:
- the direct reference to the data object
-
put
public void put(String name, Data val)
Adds a new (name, value) pair to the variable map, or replaces an old pair with the same name. Several different variable names may refer to the same value.- Parameters:
name
- the variable name for the data valueval
- the data value object (such as envelope)
-
putAll
public void putAll(LocalVariableMap vars)
-
removeAll
public void removeAll()
-
hasReferences
public boolean hasReferences(Data d)
-
getPinnedDataSize
public double getPinnedDataSize()
-
countPinnedData
public long countPinnedData()
-
serialize
public String serialize()
-
deserialize
public static LocalVariableMap deserialize(String varStr)
-
clone
public Object clone()
-
-