Package org.projectnessie.api.v1.http
Interface HttpNamespaceApi
- All Superinterfaces:
NamespaceApi
@Path("v1/namespaces")
@Path("v1/namespaces")
@Consumes("application/json")
@Consumes("application/json")
public interface HttpNamespaceApi
extends NamespaceApi
-
Method Summary
Modifier and TypeMethodDescriptioncreateNamespace(@NotNull @NotNull NamespaceParams params, @NotNull @NotNull Namespace namespace) Creates a new namespace with Namespace properties.voiddeleteNamespace(@NotNull @NotNull NamespaceParams params) Deletes the namespace if it doesn't contain any tables.getNamespace(@NotNull @NotNull NamespaceParams params) Retrieves theNamespaceinstance if it exists.getNamespaces(@NotNull @NotNull MultipleNamespacesParams params) Retrieves a list ofNamespaceinstances that match a given namespace prefix.voidupdateProperties(@NotNull @NotNull NamespaceParams params, @NotNull @NotNull NamespaceUpdate namespaceUpdate) Updates/removes properties for a givenNamespace.
-
Method Details
-
createNamespace
@PUT @PUT @Path("/namespace/{ref}/{name}") @Path("/namespace/{ref}/{name}") @Produces("application/json") @Produces("application/json") Namespace createNamespace(@BeanParam @BeanParam @NotNull @NotNull @NotNull @NotNull NamespaceParams params, @NotNull @NotNull @NotNull @NotNull Namespace namespace) throws NessieNamespaceAlreadyExistsException, NessieReferenceNotFoundException Description 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 @DELETE @Path("/namespace/{ref}/{name}") @Path("/namespace/{ref}/{name}") @Produces("application/json") @Produces("application/json") void deleteNamespace(@BeanParam @BeanParam @NotNull @NotNull @NotNull @NotNull NamespaceParams params) throws NessieReferenceNotFoundException, NessieNamespaceNotEmptyException, NessieNamespaceNotFoundException Description 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 @GET @Path("/namespace/{ref}/{name}") @Path("/namespace/{ref}/{name}") @Produces("application/json") @Produces("application/json") Namespace getNamespace(@BeanParam @BeanParam @NotNull @NotNull @NotNull @NotNull NamespaceParams params) throws NessieNamespaceNotFoundException, NessieReferenceNotFoundException Description 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 @GET @Path("/{ref}") @Path("/{ref}") @Produces("application/json") @Produces("application/json") GetNamespacesResponse getNamespaces(@BeanParam @BeanParam @NotNull @NotNull @NotNull @NotNull MultipleNamespacesParams params) throws NessieReferenceNotFoundException Description 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 @POST @Path("/namespace/{ref}/{name}") @Path("/namespace/{ref}/{name}") @Produces("application/json") @Produces("application/json") void updateProperties(@BeanParam @BeanParam @NotNull @NotNull @NotNull @NotNull NamespaceParams params, @NotNull @NotNull @NotNull @NotNull NamespaceUpdate namespaceUpdate) throws NessieNamespaceNotFoundException, NessieReferenceNotFoundException Description 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.
-