Class BaseGetContentBuilder

java.lang.Object
org.projectnessie.client.builder.BaseGetContentBuilder
All Implemented Interfaces:
GetContentBuilder, OnReferenceBuilder<GetContentBuilder>

public abstract class BaseGetContentBuilder extends Object implements GetContentBuilder
  • Field Details

    • request

      protected final org.projectnessie.model.ImmutableGetMultipleContentsRequest.Builder request
    • forWrite

      protected boolean forWrite
    • refName

      protected String refName
    • hashOnRef

      protected String hashOnRef
  • Constructor Details

    • BaseGetContentBuilder

      public BaseGetContentBuilder()
  • Method Details

    • key

      public GetContentBuilder key(org.projectnessie.model.ContentKey key)
      Specified by:
      key in interface GetContentBuilder
    • keys

      public GetContentBuilder keys(List<org.projectnessie.model.ContentKey> keys)
      Specified by:
      keys in interface GetContentBuilder
    • forWrite

      public GetContentBuilder forWrite(boolean forWrite)
      Description copied from interface: GetContentBuilder
      Set to true to perform access checks for write/create access in addition to read access checks.
      Specified by:
      forWrite in interface GetContentBuilder
    • refName

      public GetContentBuilder refName(String refName)
      Specified by:
      refName in interface OnReferenceBuilder<R extends OnReferenceBuilder<R>>
    • hashOnRef

      public GetContentBuilder hashOnRef(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<R extends OnReferenceBuilder<R>>