Class LocalVariableMap
java.lang.Object
org.apache.sysds.runtime.controlprogram.LocalVariableMap
- All Implemented Interfaces:
Cloneable
Replaces
HashMap〈String, Data〉 as the table of
variable names and references. No longer supports global consistency.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static LocalVariableMapdeserialize(String varStr) entrySet()Retrieves the data object given its name.doublebooleankeySet()voidAdds a new (name, value) pair to the variable map, or replaces an old pair with the same name.voidvoidputAll(LocalVariableMap vars) voidvoidvoidremoveAllIn(Set<String> excludeList) voidremoveAllNotIn(Set<String> excludeList) voidsetID(long ID) voidsetRegisteredOutputs(HashSet<String> outputs) toString()
-
Constructor Details
-
LocalVariableMap
public LocalVariableMap() -
LocalVariableMap
-
-
Method Details
-
setID
public void setID(long ID) -
keySet
-
entrySet
-
get
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
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
-
putAll
-
remove
-
removeAll
public void removeAll() -
removeAllIn
-
removeAllNotIn
-
hasReferences
-
setRegisteredOutputs
-
getRegisteredOutputs
-
getPinnedDataSize
public double getPinnedDataSize() -
releaseAcquiredData
public void releaseAcquiredData() -
serialize
-
deserialize
-
toString
-
clone
-