## Uses of Class
org.apache.sysds.runtime.controlprogram.LocalVariableMap

- Packages that use LocalVariableMap
  Package | Description
  --- | ---
  org.apache.sysds.api.mlcontext |
  org.apache.sysds.hops |
  org.apache.sysds.hops.cost |
  org.apache.sysds.hops.recompile |
  org.apache.sysds.hops.rewrite |
  org.apache.sysds.runtime.controlprogram |
  org.apache.sysds.runtime.controlprogram.context |
  org.apache.sysds.runtime.controlprogram.paramserv |
  org.apache.sysds.runtime.controlprogram.parfor |
  org.apache.sysds.runtime.controlprogram.parfor.opt |
  org.apache.sysds.runtime.instructions.cp |

- - ### Uses of LocalVariableMap in org.apache.sysds.api.mlcontext

    Methods in org.apache.sysds.api.mlcontext that return LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `LocalVariableMap` | Script.`getSymbolTable()` Obtain the symbol table, which is essentially a `HashMap<String, Data>` representing variables and their values.
    `LocalVariableMap` | MLResults.`getSymbolTable()` Obtain the symbol table, which is essentially a `Map<String, Data>` representing variables and their values as SystemDS representations.

    Methods in org.apache.sysds.api.mlcontext with parameters of type LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `static String` | MLContextUtil.`determineOutputTypeAsString(LocalVariableMap symbolTable, String outputName)` Obtain a symbol table output type as a String
    `static String` | MLContextUtil.`displayInputs(String name, Map<String,Object> map, LocalVariableMap symbolTable)` Obtain a display of script inputs.
    `static String` | MLContextUtil.`displayOutputs(Set<String> outputNames, LocalVariableMap symbolTable)` Obtain a display of the script outputs.
    `static String` | MLContextUtil.`displayOutputs(String name, Set<String> outputNames, LocalVariableMap symbolTable)` Obtain a display of the script outputs.
    `static String` | MLContextUtil.`displaySymbolTable(LocalVariableMap symbolTable)` Display the keys and values in the symbol table
    `static String` | MLContextUtil.`displaySymbolTable(String name, LocalVariableMap symbolTable)` Display the keys and values in the symbol table
    `static boolean` | MLContextUtil.`doesSymbolTableContainFrameObject(LocalVariableMap symbolTable, String variableName)` Determine if the symbol table contains a FrameObject with the given variable name.
    `static boolean` | MLContextUtil.`doesSymbolTableContainMatrixObject(LocalVariableMap symbolTable, String variableName)` Determine if the symbol table contains a MatrixObject with the given variable name.

    Constructors in org.apache.sysds.api.mlcontext with parameters of type LocalVariableMap
    Constructor and Description
    `MLResults(LocalVariableMap symbolTable)`

  - ### Uses of LocalVariableMap in org.apache.sysds.hops

    Methods in org.apache.sysds.hops with parameters of type LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `static double` | Hop.`computeBoundsInformation(Hop input, LocalVariableMap vars)`
    `static double` | Hop.`computeBoundsInformation(Hop input, LocalVariableMap vars, HashMap<Long,Double> memo)`
    `long` | Hop.`computeSizeInformation(Hop input, LocalVariableMap vars)`
    `long` | Hop.`computeSizeInformation(Hop input, LocalVariableMap vars, HashMap<Long,Long> memo)`
    `static long` | OptimizerUtils.`getNumIterations(ForProgramBlock fpb, LocalVariableMap vars, long defaultValue)`
    `void` | Hop.`refreshColsParameterInformation(Hop input, LocalVariableMap vars)`
    `void` | Hop.`refreshColsParameterInformation(Hop input, LocalVariableMap vars, HashMap<Long,Long> memo)`
    `void` | Hop.`refreshRowsParameterInformation(Hop input, LocalVariableMap vars)`
    `void` | Hop.`refreshRowsParameterInformation(Hop input, LocalVariableMap vars, HashMap<Long,Long> memo)`
    `static double` | OptimizerUtils.`rEvalSimpleDoubleExpression(Hop root, HashMap<Long,Double> valMemo, LocalVariableMap vars)`
    `static long` | OptimizerUtils.`rEvalSimpleLongExpression(Hop root, HashMap<Long,Long> valMemo, LocalVariableMap vars)`

  - ### Uses of LocalVariableMap in org.apache.sysds.hops.cost

    Methods in org.apache.sysds.hops.cost with parameters of type LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `double` | CostEstimator.`getTimeEstimate(ProgramBlock pb, LocalVariableMap vars, HashMap<String,VarStats> stats, boolean recursive)`
    `double` | CostEstimator.`getTimeEstimate(Program rtprog, LocalVariableMap vars, HashMap<String,VarStats> stats)`

  - ### Uses of LocalVariableMap in org.apache.sysds.hops.recompile

    Methods in org.apache.sysds.hops.recompile that return LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `static LocalVariableMap` | Recompiler.`reconcileUpdatedCallVarsIf(LocalVariableMap oldCallVars, LocalVariableMap callVarsIf, LocalVariableMap callVarsElse, StatementBlock sb)`

    Methods in org.apache.sysds.hops.recompile with parameters of type LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `static void` | Recompiler.`extractDAGOutputStatistics(ArrayList<Hop> hops, LocalVariableMap vars)`
    `static void` | Recompiler.`extractDAGOutputStatistics(ArrayList<Hop> hops, LocalVariableMap vars, boolean overwrite)`
    `static void` | Recompiler.`extractDAGOutputStatistics(Hop hop, LocalVariableMap vars, boolean overwrite)`
    `static ArrayList<Instruction>` | Recompiler.`recompileHopsDag(Hop hop, LocalVariableMap vars, RecompileStatus status, boolean inplace, boolean replaceLit, long tid)`
    `static ArrayList<Instruction>` | Recompiler.`recompileHopsDag(StatementBlock sb, ArrayList<Hop> hops, LocalVariableMap vars, RecompileStatus status, boolean inplace, boolean replaceLit, long tid)`
    `static void` | Recompiler.`recompileProgramBlockHierarchy(ArrayList<ProgramBlock> pbs, LocalVariableMap vars, long tid, Recompiler.ResetType resetRecompile)`
    `static LocalVariableMap` | Recompiler.`reconcileUpdatedCallVarsIf(LocalVariableMap oldCallVars, LocalVariableMap callVarsIf, LocalVariableMap callVarsElse, StatementBlock sb)`
    `static boolean` | Recompiler.`reconcileUpdatedCallVarsLoops(LocalVariableMap oldCallVars, LocalVariableMap callVars, StatementBlock sb)`
    `static void` | Recompiler.`removeUpdatedScalars(LocalVariableMap callVars, StatementBlock sb)` Remove any scalar variables from the variable map if the variable is updated in this block.
    `static void` | Recompiler.`rReplaceLiterals(Hop hop, LocalVariableMap vars, boolean scalarsOnly)`
    `static void` | Recompiler.`rUpdateStatistics(Hop hop, LocalVariableMap vars)`

  - ### Uses of LocalVariableMap in org.apache.sysds.hops.rewrite

    Methods in org.apache.sysds.hops.rewrite that return LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `LocalVariableMap` | ProgramRewriteStatus.`getVariables()`

    Constructors in org.apache.sysds.hops.rewrite with parameters of type LocalVariableMap
    Constructor and Description
    `ProgramRewriteStatus(LocalVariableMap vars)`
    `RewriteRemovePersistentReadWrite(String[] in, String[] out, LocalVariableMap vars)`

  - ### Uses of LocalVariableMap in org.apache.sysds.runtime.controlprogram

    Methods in org.apache.sysds.runtime.controlprogram that return LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `static LocalVariableMap` | LocalVariableMap.`deserialize(String varStr)`

    Methods in org.apache.sysds.runtime.controlprogram with parameters of type LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `void` | LocalVariableMap.`putAll(LocalVariableMap vars)`

    Constructors in org.apache.sysds.runtime.controlprogram with parameters of type LocalVariableMap
    Constructor and Description
    `LocalVariableMap(LocalVariableMap vars)`

  - ### Uses of LocalVariableMap in org.apache.sysds.runtime.controlprogram.context

    Methods in org.apache.sysds.runtime.controlprogram.context that return LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `LocalVariableMap` | ExecutionContext.`getVariables()`

    Methods in org.apache.sysds.runtime.controlprogram.context with parameters of type LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `static ExecutionContext` | ExecutionContextFactory.`createContext(LocalVariableMap vars, Program prog)`
    `void` | ExecutionContext.`setVariables(LocalVariableMap vars)`

    Constructors in org.apache.sysds.runtime.controlprogram.context with parameters of type LocalVariableMap
    Constructor and Description
    `ExecutionContext(LocalVariableMap vars)`

  - ### Uses of LocalVariableMap in org.apache.sysds.runtime.controlprogram.paramserv

    Methods in org.apache.sysds.runtime.controlprogram.paramserv with parameters of type LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `static ExecutionContext` | ParamservUtils.`createExecutionContext(ExecutionContext ec, LocalVariableMap varsMap, String updFunc, String aggFunc, int k)`

  - ### Uses of LocalVariableMap in org.apache.sysds.runtime.controlprogram.parfor

    Methods in org.apache.sysds.runtime.controlprogram.parfor that return LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `static LocalVariableMap[]` | RemoteParForUtils.`getResults(List<scala.Tuple2<Long,String>> out, org.apache.commons.logging.Log LOG)`
    `LocalVariableMap` | ParWorker.`getVariables()`
    `LocalVariableMap` | ParForBody.`getVariables()`
    `LocalVariableMap[]` | RemoteParForJobReturn.`getVariables()`

    Methods in org.apache.sysds.runtime.controlprogram.parfor with parameters of type LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `static void` | RemoteParForUtils.`exportLineageItems(long workerID, LocalVariableMap vars, ArrayList<ParForStatementBlock.ResultVar> resultVars, Lineage lineage)` Export lineage for remote Spark parfor workers.
    `static ArrayList<String>` | RemoteParForUtils.`exportResultVariables(long workerID, LocalVariableMap vars, ArrayList<ParForStatementBlock.ResultVar> resultVars)` For remote Spark parfor workers.
    `static void` | RemoteParForUtils.`exportResultVariables(long workerID, LocalVariableMap vars, ArrayList<ParForStatementBlock.ResultVar> resultVars, HashMap<String,String> rvarFnames, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable> out)` For remote MR parfor workers.
    `static void` | RemoteParForUtils.`exportResultVariables(long workerID, LocalVariableMap vars, ArrayList<ParForStatementBlock.ResultVar> resultVars, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Writable,org.apache.hadoop.io.Writable> out)`
    `static Lineage[]` | RemoteParForUtils.`getLineages(LocalVariableMap[] results)`
    `void` | CachedReuseVariables.`reuseVariables(long pfid, LocalVariableMap vars, Collection<String> excludeList, Map<String,org.apache.spark.broadcast.Broadcast<CacheBlock>> _brInputs, boolean cleanCache)`

    Constructors in org.apache.sysds.runtime.controlprogram.parfor with parameters of type LocalVariableMap
    Constructor and Description
    `RemoteParForJobReturn(boolean successful, int numTasks, int numIters, LocalVariableMap[] variables)`
    `RemoteParForJobReturn(boolean successful, int numTasks, int numIters, LocalVariableMap[] variables, Lineage[] lineages)`

  - ### Uses of LocalVariableMap in org.apache.sysds.runtime.controlprogram.parfor.opt

    Methods in org.apache.sysds.runtime.controlprogram.parfor.opt that return LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `static LocalVariableMap` | ProgramRecompiler.`getReusableScalarVariables(DMLProgram prog, StatementBlock parforSB, LocalVariableMap vars)`

    Methods in org.apache.sysds.runtime.controlprogram.parfor.opt with parameters of type LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `static ArrayList<OptNode>` | OptTreeConverter.`createAbstractOptNodes(ArrayList<Hop> hops, LocalVariableMap vars, Set<String> memo)`
    `static OptNode` | OptTreeConverter.`createOptNode(Instruction inst, LocalVariableMap vars, boolean storeObjs)`
    `static ArrayList<OptNode>` | OptTreeConverter.`createOptNodes(ArrayList<Instruction> instset, LocalVariableMap vars, boolean storeObjs)`
    `static LocalVariableMap` | ProgramRecompiler.`getReusableScalarVariables(DMLProgram prog, StatementBlock parforSB, LocalVariableMap vars)`
    `static OptNode` | OptTreeConverter.`rCreateAbstractOptNode(StatementBlock sb, ProgramBlock pb, LocalVariableMap vars, boolean topLevel, Set<String> memo)`
    `static ArrayList<OptNode>` | OptTreeConverter.`rCreateAbstractOptNodes(Hop hop, LocalVariableMap vars, Set<String> memo)`
    `static OptNode` | OptTreeConverter.`rCreateOptNode(ProgramBlock pb, LocalVariableMap vars, boolean topLevel, boolean storeObjs)`
    `static void` | ProgramRecompiler.`replaceConstantScalarVariables(StatementBlock sb, LocalVariableMap vars)`

    Constructors in org.apache.sysds.runtime.controlprogram.parfor.opt with parameters of type LocalVariableMap
    Constructor and Description
    `CostEstimatorRuntime(OptTreePlanMappingAbstract map, LocalVariableMap vars)`

  - ### Uses of LocalVariableMap in org.apache.sysds.runtime.instructions.cp

    Methods in org.apache.sysds.runtime.instructions.cp with parameters of type LocalVariableMap
    Modifier and Type | Method and Description
    --- | ---
    `static String` | CPInstruction.`updateLabels(String instList, LocalVariableMap labelValueMapping)` Takes a delimited string of instructions, and replaces ALL placeholder labels (such as ##mVar2## and ##Var5##) in ALL instructions.

Copyright © 2020 The Apache Software Foundation. All rights reserved.