Class BaseDeleteNamespaceBuilder

java.lang.Object
org.projectnessie.client.builder.BaseDeleteNamespaceBuilder
All Implemented Interfaces:
DeleteNamespaceBuilder, ModifyNamespaceBuilder<DeleteNamespaceBuilder>, OnNamespaceBuilder<DeleteNamespaceBuilder>, OnReferenceBuilder<DeleteNamespaceBuilder>
Direct Known Subclasses:
ClientSideDeleteNamespace

public abstract class BaseDeleteNamespaceBuilder extends Object implements DeleteNamespaceBuilder
  • Field Details

    • namespace

      protected org.projectnessie.model.Namespace namespace
    • refName

      protected String refName
    • hashOnRef

      protected String hashOnRef
    • commitMeta

      protected org.projectnessie.model.CommitMeta commitMeta
  • Constructor Details

    • BaseDeleteNamespaceBuilder

      public BaseDeleteNamespaceBuilder()
  • Method Details

    • commitMeta

      public DeleteNamespaceBuilder commitMeta(org.projectnessie.model.CommitMeta commitMeta)
      Specified by:
      commitMeta in interface ModifyNamespaceBuilder<DeleteNamespaceBuilder>
    • namespace

      public DeleteNamespaceBuilder namespace(org.projectnessie.model.Namespace namespace)
      Specified by:
      namespace in interface OnNamespaceBuilder<DeleteNamespaceBuilder>
    • refName

      public DeleteNamespaceBuilder refName(String refName)
      Specified by:
      refName in interface OnReferenceBuilder<DeleteNamespaceBuilder>
    • hashOnRef

      public DeleteNamespaceBuilder hashOnRef(@Nullable @Nullable String hashOnRef)
      Description copied from interface: OnReferenceBuilder
      Optional commit ID with an optional sequence of relative lookups. Relative lookups can be by-timestamp, by-n-th-predecessor or by-n-th-parent.

      Relative lookups are only supported for REST API v2 against servers announcing Nessie specification 2.1.0 for most functionalities.

      • Lookup by timestamp starts with * followed by the numeric value of the timestamp in milliseconds since epoch.
      • Lookup by n-th predecessor starts with ~ followed by the value for the n-th commit in the commit log.
      • Lookup by n-th parent starts with ^ followed by either 1, referencing the direct parent, or 2, referencing the merge parent.

      Valid values are:

      • ~10 -> the 10th parent from the HEAD
      • 11223344~10 -> the 10th parent of the commit 11223344
      • 11223344^2 -> the merge parent of the commit 11223344
      • 11223344~10^2 -> the merge parent of the 10th parent of the commit 11223344
      • 11223344~10^1 -> the direct parent of the 10th parent of the commit 11223344 - functionally equal to 11223344~11
      • 11223344*10000000000 -> the commit in the commit log starting at 11223344 with a commit-created timestamp of 10000000000 or less.
      • *10000000000 -> the commit in the commit log starting at HEAD with a commit-created timestamp of 10000000000 or less.
      Specified by:
      hashOnRef in interface OnReferenceBuilder<DeleteNamespaceBuilder>