Package org.projectnessie.client
Class StreamingUtil
- java.lang.Object
-
- org.projectnessie.client.StreamingUtil
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stream<CommitMeta>getCommitLogStream(@NotNull TreeApi treeApi, @NotNull String ref, @NotNull CommitLogParams commitLogParams)Default implementation to return a stream of commit-log entries, functionally equivalent to callingTreeApi.getCommitLog(String, CommitLogParams)with manual paging.static Stream<EntriesResponse.Entry>getEntriesStream(@NotNull TreeApi treeApi, @NotNull String ref, @NotNull EntriesParams entriesParams)Default implementation to return a stream of objects for a ref, functionally equivalent to callingTreeApi.getEntries(String, EntriesParams)with manual paging.
-
-
-
Method Detail
-
getEntriesStream
public static Stream<EntriesResponse.Entry> getEntriesStream(@NotNull @NotNull TreeApi treeApi, @NotNull @NotNull String ref, @NotNull @NotNull EntriesParams entriesParams) throws NessieNotFoundException
Default implementation to return a stream of objects for a ref, functionally equivalent to callingTreeApi.getEntries(String, EntriesParams)with manual paging.The
Streamreturned bygetEntriesStream(ref, OptionalInt.empty()), if not limited, returns all commit-log entries.- Parameters:
ref- a named reference (branch or tag name) or a commit-hashentriesParams- A wrapper object holding all filtering parameters- Returns:
- stream of
EntriesResponse.Entryobjects - Throws:
NessieNotFoundException
-
getCommitLogStream
public static Stream<CommitMeta> getCommitLogStream(@NotNull @NotNull TreeApi treeApi, @NotNull @NotNull String ref, @NotNull @NotNull CommitLogParams commitLogParams) throws NessieNotFoundException
Default implementation to return a stream of commit-log entries, functionally equivalent to callingTreeApi.getCommitLog(String, CommitLogParams)with manual paging.The
Streamreturned bygetCommitLogStream(ref, OptionalInt.empty()), if not limited, returns all commit-log entries.- Parameters:
treeApi- TheTreeApito useref- a named reference (branch or tag name) or a commit-hashcommitLogParams- A wrapper object holding all filtering parameters for the commit log- Returns:
- stream of
CommitMetaobjects - Throws:
NessieNotFoundException
-
-