Class StreamingUtil


  • public final class StreamingUtil
    extends java.lang.Object
    Helper and utility methods around streaming of NessieApiV1 et al.

    Use the functions that return Streams in the builders that implement PagingBuilder.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <ENTRY,​RESP extends org.projectnessie.model.PaginatedResponse>
      java.util.stream.Stream<ENTRY>
      generateStream​(java.util.function.Function<RESP,​java.util.List<ENTRY>> entriesExtractor, StreamingUtil.PageFetcher<RESP> pageFetcher)  
      • Methods inherited from class java.lang.Object

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

      • generateStream

        public static <ENTRY,​RESP extends org.projectnessie.model.PaginatedResponse> java.util.stream.Stream<ENTRY> generateStream​(java.util.function.Function<RESP,​java.util.List<ENTRY>> entriesExtractor,
                                                                                                                                         StreamingUtil.PageFetcher<RESP> pageFetcher)
                                                                                                                                  throws org.projectnessie.error.NessieNotFoundException
        Throws:
        org.projectnessie.error.NessieNotFoundException