Class BaseGetEntriesBuilder<PARAMS>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String filter  
      protected java.lang.String hashOnRef  
      protected java.lang.Integer maxRecords  
      protected java.lang.Integer namespaceDepth  
      protected java.lang.String refName  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseGetEntriesBuilder​(java.util.function.BiFunction<PARAMS,​java.lang.String,​PARAMS> paramsForPage)  
    • Field Detail

      • maxRecords

        protected java.lang.Integer maxRecords
      • filter

        protected java.lang.String filter
      • namespaceDepth

        protected java.lang.Integer namespaceDepth
      • refName

        protected java.lang.String refName
      • hashOnRef

        protected java.lang.String hashOnRef
    • Constructor Detail

      • BaseGetEntriesBuilder

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

      • maxRecords

        public GetEntriesBuilder 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<GetEntriesBuilder,​org.projectnessie.model.EntriesResponse,​org.projectnessie.model.EntriesResponse.Entry>
      • params

        protected abstract PARAMS params()
      • get

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

        public org.projectnessie.model.EntriesResponse 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 GetEntriesBuilder
        Specified by:
        get in interface PagingBuilder<GetEntriesBuilder,​org.projectnessie.model.EntriesResponse,​org.projectnessie.model.EntriesResponse.Entry>
        Throws:
        org.projectnessie.error.NessieNotFoundException
      • stream

        public java.util.stream.Stream<org.projectnessie.model.EntriesResponse.Entry> 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<GetEntriesBuilder,​org.projectnessie.model.EntriesResponse,​org.projectnessie.model.EntriesResponse.Entry>
        Throws:
        org.projectnessie.error.NessieNotFoundException