Package org.projectnessie.api.v1.http
Interface HttpNamespaceApi
-
- All Superinterfaces:
NamespaceApi
@Path("namespaces") @Consumes("application/json") public interface HttpNamespaceApi extends NamespaceApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NamespacecreateNamespace(@NotNull NamespaceParams params, @NotNull Namespace namespace)Creates a new namespace with Namespace properties.voiddeleteNamespace(@NotNull NamespaceParams params)Deletes the namespace if it doesn't contain any tables.NamespacegetNamespace(@NotNull NamespaceParams params)Retrieves theNamespaceinstance if it exists.GetNamespacesResponsegetNamespaces(@NotNull MultipleNamespacesParams params)Retrieves a list ofNamespaceinstances that match a given namespace prefix.voidupdateProperties(@NotNull NamespaceParams params, @NotNull NamespaceUpdate namespaceUpdate)Updates/removes properties for a givenNamespace.
-
-
-
Method Detail
-
createNamespace
@PUT @Path("/namespace/{ref}/{name}") @Produces("application/json") Namespace createNamespace(@BeanParam @NotNull @NotNull NamespaceParams params, @NotNull @NotNull Namespace namespace) throws NessieNamespaceAlreadyExistsException, NessieReferenceNotFoundExceptionDescription copied from interface:NamespaceApiCreates a new namespace with Namespace properties.- Specified by:
createNamespacein interfaceNamespaceApi- Parameters:
params- TheNamespaceParamsthat includes the parameters for the API call.namespace- The instance including the namespace properties.- Returns:
- A
Namespaceinstance if creating the namespace succeeded. - Throws:
NessieNamespaceAlreadyExistsException- If the namespace already exists.NessieReferenceNotFoundException- If the reference could not be found.
-
deleteNamespace
@DELETE @Path("/namespace/{ref}/{name}") @Produces("application/json") void deleteNamespace(@BeanParam @NotNull @NotNull NamespaceParams params) throws NessieReferenceNotFoundException, NessieNamespaceNotEmptyException, NessieNamespaceNotFoundExceptionDescription copied from interface:NamespaceApiDeletes the namespace if it doesn't contain any tables.- Specified by:
deleteNamespacein interfaceNamespaceApi- Parameters:
params- TheNamespaceParamsthat includes the parameters for the API call.- Throws:
NessieReferenceNotFoundException- If the reference could not be found.NessieNamespaceNotEmptyException- If the namespace is not empty and contains tables.NessieNamespaceNotFoundException- If the namespace to be deleted could not be found.
-
getNamespace
@GET @Path("/namespace/{ref}/{name}") @Produces("application/json") Namespace getNamespace(@BeanParam @NotNull @NotNull NamespaceParams params) throws NessieNamespaceNotFoundException, NessieReferenceNotFoundExceptionDescription copied from interface:NamespaceApiRetrieves theNamespaceinstance if it exists.- Specified by:
getNamespacein interfaceNamespaceApi- Parameters:
params- TheNamespaceParamsthat includes the parameters for the API call.- Returns:
- A
Namespaceinstance if a namespace with the given name exists. - Throws:
NessieNamespaceNotFoundException- If the namespace does not exist.NessieReferenceNotFoundException- If the reference could not be found.
-
getNamespaces
@GET @Path("/{ref}") @Produces("application/json") GetNamespacesResponse getNamespaces(@BeanParam @NotNull @NotNull MultipleNamespacesParams params) throws NessieReferenceNotFoundExceptionDescription copied from interface:NamespaceApiRetrieves a list ofNamespaceinstances that match a given namespace prefix.- Specified by:
getNamespacesin interfaceNamespaceApi- Parameters:
params- TheMultipleNamespacesParamsthat includes the parameters for the API call.- Returns:
- A
GetNamespacesResponseinstance containing all the namespaces that match the given namespace prefix. - Throws:
NessieReferenceNotFoundException- If the reference could not be found.
-
updateProperties
@POST @Path("/namespace/{ref}/{name}") @Produces("application/json") void updateProperties(@BeanParam @NotNull @NotNull NamespaceParams params, @NotNull @NotNull NamespaceUpdate namespaceUpdate) throws NessieNamespaceNotFoundException, NessieReferenceNotFoundExceptionDescription copied from interface:NamespaceApiUpdates/removes properties for a givenNamespace.- Specified by:
updatePropertiesin interfaceNamespaceApi- Parameters:
params- TheNamespaceParamsthat includes the parameters for the API call.namespaceUpdate- The instance including the property updates/deletes.- Throws:
NessieNamespaceNotFoundException- If the namespace does not exist.NessieReferenceNotFoundException- If the reference could not be found.
-
-