Package org.mlflow.tracking.utils
Class DatabricksContext
java.lang.Object
org.mlflow.tracking.utils.DatabricksContext
public class DatabricksContext
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONFIG_PROVIDER_CLASS_NAME
-
Method Summary
Modifier and Type Method Description static DatabricksContext
createIfAvailable()
static java.util.Map<java.lang.String,java.lang.String>
getConfigProviderIfAvailable(java.lang.String className)
java.lang.String
getNotebookId()
Should only be called if isInDatabricksNotebook() is true.java.util.Map<java.lang.String,java.lang.String>
getTags()
boolean
isInDatabricksNotebook()
-
Field Details
-
CONFIG_PROVIDER_CLASS_NAME
public static final java.lang.String CONFIG_PROVIDER_CLASS_NAME- See Also:
- Constant Field Values
-
-
Method Details
-
createIfAvailable
-
getTags
public java.util.Map<java.lang.String,java.lang.String> getTags() -
isInDatabricksNotebook
public boolean isInDatabricksNotebook() -
getNotebookId
public java.lang.String getNotebookId()Should only be called if isInDatabricksNotebook() is true. -
getConfigProviderIfAvailable
public static java.util.Map<java.lang.String,java.lang.String> getConfigProviderIfAvailable(java.lang.String className)
-