Class BaseGetAllReferencesBuilder<PARAMS>

    • Field Summary

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

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      GetAllReferencesBuilder fetch​(org.projectnessie.model.FetchOption fetchOption)
      Will fetch additional metadata about Branch / Tag instances, such as number of commits ahead/behind or the common ancestor in relation to the default branch, and the commit metadata for the HEAD commit.
      GetAllReferencesBuilder filter​(java.lang.String filter)
      Required: the CEL script.
      org.projectnessie.model.ReferencesResponse 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.ReferencesResponse get​(PARAMS p)  
      GetAllReferencesBuilder maxRecords​(int maxRecords)
      Sets the maximum number of records to be returned in a single response object from the PagingBuilder.get() method.
      GetAllReferencesBuilder pageToken​(java.lang.String pageToken)
      Sets the page token from the previous' PagingBuilder.get() method invocation.
      protected abstract PARAMS params()  
      java.util.stream.Stream<org.projectnessie.model.Reference> stream()
      Retrieve entries/results as a Java Stream, uses automatic paging.
      • 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
    • Constructor Detail

      • BaseGetAllReferencesBuilder

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

      • fetch

        public GetAllReferencesBuilder fetch​(org.projectnessie.model.FetchOption fetchOption)
        Description copied from interface: GetAllReferencesBuilder
        Will fetch additional metadata about Branch / Tag instances, such as number of commits ahead/behind or the common ancestor in relation to the default branch, and the commit metadata for the HEAD commit.
        Specified by:
        fetch in interface GetAllReferencesBuilder
        Parameters:
        fetchOption - The option indicating how much info to fetch
        Returns:
        GetAllReferencesBuilder
      • params

        protected abstract PARAMS params()
      • get

        protected abstract org.projectnessie.model.ReferencesResponse get​(PARAMS p)
      • get

        public org.projectnessie.model.ReferencesResponse get()
        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 GetAllReferencesBuilder
        Specified by:
        get in interface PagingBuilder<GetAllReferencesBuilder,​org.projectnessie.model.ReferencesResponse,​org.projectnessie.model.Reference>
      • stream

        public java.util.stream.Stream<org.projectnessie.model.Reference> 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<GetAllReferencesBuilder,​org.projectnessie.model.ReferencesResponse,​org.projectnessie.model.Reference>
        Throws:
        org.projectnessie.error.NessieNotFoundException