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 Objectclone()longcountPinnedData()static LocalVariableMapdeserialize(String varStr)Set<Map.Entry<String,Data>>entrySet()Dataget(String name)Retrieves the data object given its name.doublegetPinnedDataSize()HashSet<String>getRegisteredOutputs()booleanhasReferences(Data d)Set<String>keySet()voidput(String name, Data val)Adds a new (name, value) pair to the variable map, or replaces an old pair with the same name.voidputAll(Map<String,Data> vals)voidputAll(LocalVariableMap vars)Dataremove(String name)voidremoveAll()voidremoveAllIn(Set<String> excludeList)voidremoveAllNotIn(Set<String> excludeList)Stringserialize()voidsetRegisteredOutputs(HashSet<String> outputs)StringtoString()
-
-
-
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()
-
-