Class BaseGetNamespaceBuilder

java.lang.Object
org.projectnessie.client.builder.BaseGetNamespaceBuilder
All Implemented Interfaces:
GetNamespaceBuilder, OnNamespaceBuilder<GetNamespaceBuilder>, OnReferenceBuilder<GetNamespaceBuilder>
Direct Known Subclasses:
ClientSideGetNamespace

public abstract class BaseGetNamespaceBuilder extends Object implements GetNamespaceBuilder
  • Field Details

    • namespace

      protected org.projectnessie.model.Namespace namespace
    • refName

      protected String refName
    • hashOnRef

      protected String hashOnRef
  • Constructor Details

    • BaseGetNamespaceBuilder

      public BaseGetNamespaceBuilder()
  • Method Details

    • namespace

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

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

      public GetNamespaceBuilder 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<GetNamespaceBuilder>