Class BaseGetCommitLogBuilder<PARAMS>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.projectnessie.model.FetchOption fetchOption  
      protected java.lang.String filter  
      protected java.lang.String hashOnRef  
      protected java.lang.Integer maxRecords  
      protected java.lang.String refName  
      protected java.lang.String untilHash  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseGetCommitLogBuilder​(java.util.function.BiFunction<PARAMS,​java.lang.String,​PARAMS> paramsForPage)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      GetCommitLogBuilder fetch​(org.projectnessie.model.FetchOption fetchOption)
      Will fetch additional metadata about each commit like operations in a commit and parent hash.
      GetCommitLogBuilder filter​(java.lang.String filter)
      Required: the CEL script.
      org.projectnessie.model.LogResponse get()
      Advanced usage, for manual paging: fetches a response chunk (might be one page or complete response depending on use case and parameters), but callers must implement paging on their own, if necessary.
      protected abstract org.projectnessie.model.LogResponse get​(PARAMS p)  
      R hashOnRef​(java.lang.String hashOnRef)
      Optional commit ID with an optional sequence of relative lookups.
      GetCommitLogBuilder maxRecords​(int maxRecords)
      Sets the maximum number of records to be returned in a single response object from the PagingBuilder.get() method.
      GetCommitLogBuilder pageToken​(java.lang.String pageToken)
      Sets the page token from the previous' PagingBuilder.get() method invocation.
      protected abstract PARAMS params()  
      R refName​(java.lang.String refName)  
      java.util.stream.Stream<org.projectnessie.model.LogResponse.LogEntry> stream()
      Retrieve entries/results as a Java Stream, uses automatic paging.
      GetCommitLogBuilder untilHash​(java.lang.String untilHash)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • maxRecords

        protected java.lang.Integer maxRecords
      • fetchOption

        protected org.projectnessie.model.FetchOption fetchOption
      • filter

        protected java.lang.String filter
      • untilHash

        protected java.lang.String untilHash
      • refName

        protected java.lang.String refName
      • hashOnRef

        protected java.lang.String hashOnRef
    • Constructor Detail

      • BaseGetCommitLogBuilder

        protected BaseGetCommitLogBuilder​(java.util.function.BiFunction<PARAMS,​java.lang.String,​PARAMS> paramsForPage)
    • Method Detail

      • maxRecords

        public GetCommitLogBuilder maxRecords​(int maxRecords)
        Description copied from interface: PagingBuilder
        Sets the maximum number of records to be returned in a single response object from the PagingBuilder.get() method.

        This setter reflects the OpenAPI parameter maxRecords in a paged request.

        Specified by:
        maxRecords in interface PagingBuilder<GetCommitLogBuilder,​org.projectnessie.model.LogResponse,​org.projectnessie.model.LogResponse.LogEntry>
      • params

        protected abstract PARAMS params()
      • get

        public org.projectnessie.model.LogResponse get()
                                                throws org.projectnessie.error.NessieNotFoundException
        Description copied from interface: PagingBuilder
        Advanced usage, for manual paging: fetches a response chunk (might be one page or complete response depending on use case and parameters), but callers must implement paging on their own, if necessary. If in doubt, use PagingBuilder.stream() instead.
        Specified by:
        get in interface GetCommitLogBuilder
        Specified by:
        get in interface PagingBuilder<GetCommitLogBuilder,​org.projectnessie.model.LogResponse,​org.projectnessie.model.LogResponse.LogEntry>
        Throws:
        org.projectnessie.error.NessieNotFoundException
      • get

        protected abstract org.projectnessie.model.LogResponse get​(PARAMS p)
                                                            throws org.projectnessie.error.NessieNotFoundException
        Throws:
        org.projectnessie.error.NessieNotFoundException
      • stream

        public java.util.stream.Stream<org.projectnessie.model.LogResponse.LogEntry> stream()
                                                                                     throws org.projectnessie.error.NessieNotFoundException
        Description copied from interface: PagingBuilder
        Retrieve entries/results as a Java Stream, uses automatic paging.
        Specified by:
        stream in interface PagingBuilder<GetCommitLogBuilder,​org.projectnessie.model.LogResponse,​org.projectnessie.model.LogResponse.LogEntry>
        Throws:
        org.projectnessie.error.NessieNotFoundException
      • hashOnRef

        public R hashOnRef​(java.lang.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>>