public interface WorkspaceService
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String path,
boolean recursive)
Deletes a specific workspace path.
|
byte[] |
exportWorkspace(ExportWorkspaceRequest exportWorkspaceRequest)
Exports a workspace path FROM databricks to local machine.
|
ObjectInfoDTO |
getStatus(String path)
Gets the status of a specific workspace path.
|
void |
importWorkspace(ImportWorkspaceRequest importWorkspaceRequest)
Imports files INTO databricks from local machine.
|
ObjectInfoDTO[] |
listStatus(String path)
Lists all objects in a specific db workspace path.
|
void |
mkdirs(String path)
Makes a path (and any parent paths if they do not exist) on db workspace.
|
void delete(String path, boolean recursive) throws IOException, DatabricksRestException
path - the workspace path to deleterecursive - whether or not its recursiveIOException - any other errorsDatabricksRestException - databricks specific errorsbyte[] exportWorkspace(ExportWorkspaceRequest exportWorkspaceRequest) throws IOException, DatabricksRestException
exportWorkspaceRequest - the request objectIOException - any other errorsDatabricksRestException - any specific db errorsObjectInfoDTO getStatus(String path) throws IOException, DatabricksRestException
path - the workspace pathIOException - any other errorsDatabricksRestException - any specific db errorsvoid importWorkspace(ImportWorkspaceRequest importWorkspaceRequest) throws IOException, DatabricksRestException
importWorkspaceRequest - the import workspace requestIOException - any other errorsDatabricksRestException - specific db exceptionsObjectInfoDTO[] listStatus(String path) throws IOException, DatabricksRestException
path - the db workspace pathIOException - any other errorsDatabricksRestException - specific db exceptionsvoid mkdirs(String path) throws IOException, DatabricksRestException
path - the db workspace path to createIOException - any other errorsDatabricksRestException - any specific db exceptionsCopyright © 2023. All rights reserved.