@Deprecated public class WorkspaceDataset extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SCOPE
Deprecated.
|
static io.cdap.cdap.spi.data.table.StructuredTableSpecification |
TABLE_SPEC
Deprecated.
|
| Constructor and Description |
|---|
WorkspaceDataset(io.cdap.cdap.spi.data.StructuredTable table)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
NamespacedId |
createWorkspace(Namespace namespace,
WorkspaceMeta meta)
Deprecated.
Creates a new workspace
|
int |
deleteScope(Namespace namespace,
String scope)
Deprecated.
Deletes a workspaces that have the specified scope.
|
void |
deleteWorkspace(NamespacedId id)
Deprecated.
Deletes the workspace.
|
static WorkspaceDataset |
get(io.cdap.cdap.spi.data.StructuredTableContext context)
Deprecated.
|
Workspace |
getWorkspace(NamespacedId id)
Deprecated.
Get information about the workspace.
|
boolean |
hasWorkspace(NamespacedId id)
Deprecated.
Checks if a workspace exists.
|
List<WorkspaceIdentifier> |
listWorkspaces(Namespace namespace,
String scope)
Deprecated.
Lists all the workspaces registered for a scope.
|
List<Workspace> |
listWorkspaces(io.cdap.cdap.api.NamespaceSummary namespace,
long timestampSeconds)
Deprecated.
LLists all the workspaces before timestamp.
|
void |
updateWorkspaceData(NamespacedId id,
DataType dataType,
byte[] data)
Deprecated.
Update the sample data for the specified workspace.
|
void |
updateWorkspaceProperties(NamespacedId id,
Map<String,String> properties)
Deprecated.
Update the properties of the specified workspace.
|
void |
updateWorkspaceRequest(NamespacedId id,
Request request)
Deprecated.
Update the directive execution request for the specified workspace.
|
void |
writeWorkspaceMeta(NamespacedId id,
WorkspaceMeta meta)
Deprecated.
Creates a workspace if it does not already exist, or update an existing workspace if it does.
|
public static final io.cdap.cdap.spi.data.table.StructuredTableSpecification TABLE_SPEC
public static final String DEFAULT_SCOPE
public WorkspaceDataset(io.cdap.cdap.spi.data.StructuredTable table)
public static WorkspaceDataset get(io.cdap.cdap.spi.data.StructuredTableContext context)
public NamespacedId createWorkspace(Namespace namespace, WorkspaceMeta meta) throws IOException
namespace - the namespace to create the workspace inmeta - the workspace metadataIOExceptionpublic void writeWorkspaceMeta(NamespacedId id, WorkspaceMeta meta) throws IOException
id - the id of the workspace to writemeta - the workspace metadataIOExceptionpublic Workspace getWorkspace(NamespacedId id) throws WorkspaceNotFoundException, IOException
id - the workspace idWorkspaceNotFoundException - if the workspace does not existIOExceptionpublic boolean hasWorkspace(NamespacedId id) throws IOException
id - of the workspace to be checked for.IOExceptionpublic List<WorkspaceIdentifier> listWorkspaces(Namespace namespace, String scope) throws IOException
IOExceptionpublic List<Workspace> listWorkspaces(io.cdap.cdap.api.NamespaceSummary namespace, long timestampSeconds) throws IOException
IOExceptionpublic void updateWorkspaceProperties(NamespacedId id, Map<String,String> properties) throws WorkspaceNotFoundException, IOException
id - the workspace idproperties - the properties to updateWorkspaceNotFoundException - if the workspace does not existIOExceptionpublic void updateWorkspaceRequest(NamespacedId id, Request request) throws WorkspaceNotFoundException, IOException
id - the workspace idrequest - the directive execution requestWorkspaceNotFoundException - if the workspace does not existIOExceptionpublic void updateWorkspaceData(NamespacedId id, DataType dataType, byte[] data) throws WorkspaceNotFoundException, IOException
id - the workspace iddata - the sample dataWorkspaceNotFoundException - if the workspace does not existIOExceptionpublic void deleteWorkspace(NamespacedId id) throws IOException
id - to be deleted.IOExceptionpublic int deleteScope(Namespace namespace, String scope) throws IOException
scope - to be deletedIOExceptionCopyright © 2021 CDAP Licensed under the Apache License, Version 2.0.