Package org.apache.sysds.api
Class DMLOptions
- java.lang.Object
- 
- org.apache.sysds.api.DMLOptions
 
- 
 public class DMLOptions extends Object Set of DMLOptions that can be set through the command line andMLContextThe values have been initialized with the default values Despite there being a DML and PyDML, this class is named DMLOptions to keep it consistent withDMLOptionsandDMLOptions
- 
- 
Field SummaryFields Modifier and Type Field Description Map<String,String>argValsbooleancheckPrivacybooleancleanStringconfigFilebooleandebugstatic DMLOptionsdefaultOptionsTypes.ExecModeexecModeExplain.ExplainTypeexplainTypebooleanfederatedCompilationbooleanfedMonitoringintfedMonitoringPortbooleanfedStatsintfedStatsCountbooleanfedWorkerintfedWorkerPortStringfilePathbooleanforceGPUbooleangpubooleanhelpLineageCacheConfig.LineageCachePolicylinCachePolicybooleanlineagebooleanlineage_debuggerbooleanlineage_dedupbooleanlineage_estimateLineageCacheConfig.ReuseCacheTypelinReuseTypebooleanmemStatsbooleannoFedRuntimeConversionorg.apache.commons.cli.OptionsoptionsintpythonPortStringscriptintseedbooleanstatsintstatsCount
 - 
Constructor SummaryConstructors Constructor Description DMLOptions(org.apache.commons.cli.Options opts)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DMLOptionsparseCLArguments(String[] args)Parses command line arguments to create aDMLOptionsinstance with the correct optionsStringtoString()
 
- 
- 
- 
Field Detail- 
optionspublic final org.apache.commons.cli.Options options 
 - 
configFilepublic String configFile 
 - 
cleanpublic boolean clean 
 - 
statspublic boolean stats 
 - 
statsCountpublic int statsCount 
 - 
fedStatspublic boolean fedStats 
 - 
fedStatsCountpublic int fedStatsCount 
 - 
memStatspublic boolean memStats 
 - 
explainTypepublic Explain.ExplainType explainType 
 - 
execModepublic Types.ExecMode execMode 
 - 
gpupublic boolean gpu 
 - 
forceGPUpublic boolean forceGPU 
 - 
debugpublic boolean debug 
 - 
filePathpublic String filePath 
 - 
scriptpublic String script 
 - 
helppublic boolean help 
 - 
lineagepublic boolean lineage 
 - 
lineage_deduppublic boolean lineage_dedup 
 - 
linReuseTypepublic LineageCacheConfig.ReuseCacheType linReuseType 
 - 
linCachePolicypublic LineageCacheConfig.LineageCachePolicy linCachePolicy 
 - 
lineage_estimatepublic boolean lineage_estimate 
 - 
lineage_debuggerpublic boolean lineage_debugger 
 - 
fedWorkerpublic boolean fedWorker 
 - 
fedWorkerPortpublic int fedWorkerPort 
 - 
fedMonitoringpublic boolean fedMonitoring 
 - 
fedMonitoringPortpublic int fedMonitoringPort 
 - 
pythonPortpublic int pythonPort 
 - 
checkPrivacypublic boolean checkPrivacy 
 - 
federatedCompilationpublic boolean federatedCompilation 
 - 
noFedRuntimeConversionpublic boolean noFedRuntimeConversion 
 - 
seedpublic int seed 
 - 
defaultOptionspublic static final DMLOptions defaultOptions 
 
- 
 - 
Method Detail- 
parseCLArgumentspublic static DMLOptions parseCLArguments(String[] args) throws org.apache.commons.cli.ParseException Parses command line arguments to create aDMLOptionsinstance with the correct options- Parameters:
- args- arguments from the command line
- Returns:
- an instance of DMLOptionsthat contain the correctOptions.
- Throws:
- org.apache.commons.cli.ParseException- if there is an incorrect option specified in the CLI
 
 
- 
 
-