Interface NessieApiV2

All Superinterfaces:
AutoCloseable, NessieApi, NessieApiV1
All Known Implementing Classes:
HttpApiV2

public interface NessieApiV2 extends NessieApiV1
Interface for the Nessie V2 API implementation.

At the java client level this API uses the same builder classes and model types as API v1, however the behaviour of some API methods is different.

Most changes between v1 and v2 exist at the REST level (HTTP).

  • Method Details

    • getRepositoryConfig

      GetRepositoryConfigBuilder getRepositoryConfig()
    • updateRepositoryConfig

      UpdateRepositoryConfigBuilder updateRepositoryConfig()
    • deleteReference

      DeleteReferenceBuilder<org.projectnessie.model.Reference> deleteReference()
      Delete a branch or a tag.
    • assignReference

      AssignReferenceBuilder<org.projectnessie.model.Reference> assignReference()
      Update a branch or a tag (make it point to an arbitrary commit).
    • assignTag

      Deprecated.
      Use assignReference().asTag() instead.
      Update a tag.
      Specified by:
      assignTag in interface NessieApiV1
    • assignBranch

      Deprecated.
      Use assignReference().asBranch() instead.
      Update a branch.
      Specified by:
      assignBranch in interface NessieApiV1
    • deleteTag

      Deprecated.
      Use deleteReference().asTag() instead.
      Delete a tag.
      Specified by:
      deleteTag in interface NessieApiV1
    • deleteBranch

      Deprecated.
      Use deleteReference().asBranch() instead.
      Delete a branch.
      Specified by:
      deleteBranch in interface NessieApiV1
    • getRefLog

      @Deprecated default GetRefLogBuilder getRefLog()
      Deprecated.
      Description copied from interface: NessieApiV1
      Retrieve the reflog from the HEAD of the RefLog resource, potentially truncated by the backend.

      The Nessie reflog in this form is deprecated, likely for removal.

      Retrieves up to maxRecords refLog-entries starting at the HEAD of the RefLog resource. The backend may respect the given max records hint, but return less or more entries. Backends may also cap the returned entries at a hard-coded limit, the default REST server implementation has such a hard-coded limit.

      Invoking getRefLog() does not guarantee to return all reflog entries, because the result can be truncated by the backend.

      To implement paging, check RefLogResponse.isHasMore() and, if true, pass the value of RefLogResponse.getToken() in the next invocation of getRefLog() as the pageToken parameter.

      Specified by:
      getRefLog in interface NessieApiV1
    • getNamespace

      default GetNamespaceBuilder getNamespace()
      Description copied from interface: NessieApiV1
      Fetch a single Namespace.
      Specified by:
      getNamespace in interface NessieApiV1
    • getMultipleNamespaces

      default GetMultipleNamespacesBuilder getMultipleNamespaces()
      Description copied from interface: NessieApiV1
      Fetch one or more Namespaces based on a given prefix.
      Specified by:
      getMultipleNamespaces in interface NessieApiV1
    • createNamespace

      default CreateNamespaceBuilder createNamespace()
      Description copied from interface: NessieApiV1
      Create a single Namespace.
      Specified by:
      createNamespace in interface NessieApiV1
    • deleteNamespace

      default DeleteNamespaceBuilder deleteNamespace()
      Description copied from interface: NessieApiV1
      Delete a single Namespace.
      Specified by:
      deleteNamespace in interface NessieApiV1
    • updateProperties

      default UpdateNamespaceBuilder updateProperties()
      Description copied from interface: NessieApiV1
      Updates properties of a Namespace.
      Specified by:
      updateProperties in interface NessieApiV1
    • referenceHistory

      ReferenceHistoryBuilder referenceHistory()
      Retrieve the recorded recent history of a reference.

      A reference's history is a size and time limited record of changes of the reference's current pointer, aka HEAD. The size and time limits are configured in the Nessie server configuration.