Package org.projectnessie.client.builder
Class BaseGetDiffBuilder<PARAMS>
java.lang.Object
org.projectnessie.client.builder.BaseGetDiffBuilder<PARAMS>
- All Implemented Interfaces:
GetDiffBuilder,KeyRangeBuilder<GetDiffBuilder>,PagingBuilder<GetDiffBuilder,,org.projectnessie.model.DiffResponse, org.projectnessie.model.DiffResponse.DiffEntry> QueryBuilder<GetDiffBuilder>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected final List<org.projectnessie.model.ContentKey>protected org.projectnessie.model.ContentKeyprotected Integerprotected org.projectnessie.model.ContentKeyprotected org.projectnessie.model.ContentKeyprotected Stringprotected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseGetDiffBuilder(BiFunction<PARAMS, String, PARAMS> paramsForPage) -
Method Summary
Modifier and TypeMethodDescriptionRequired: the CEL script.fromHashOnRef(String fromHashOnRef) fromRefName(String fromRefName) org.projectnessie.model.DiffResponseget()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.DiffResponsekey(org.projectnessie.model.ContentKey key) keys(Collection<org.projectnessie.model.ContentKey> keys) maxKey(org.projectnessie.model.ContentKey maxKey) maxRecords(int maxRecords) Sets the maximum number of records to be returned in a single response object from thePagingBuilder.get()method.minKey(org.projectnessie.model.ContentKey minKey) Sets the page token from the previous'PagingBuilder.get()method invocation.protected abstract PARAMSparams()prefixKey(org.projectnessie.model.ContentKey prefixKey) Stream<org.projectnessie.model.DiffResponse.DiffEntry>stream()Retrieve entries/results as a JavaStream, uses automatic paging.toHashOnRef(String toHashOnRef) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.projectnessie.client.api.GetDiffBuilder
fromRef, toRef
-
Field Details
-
maxRecords
-
fromRefName
-
fromHashOnRef
-
toRefName
-
toHashOnRef
-
keys
-
minKey
protected org.projectnessie.model.ContentKey minKey -
maxKey
protected org.projectnessie.model.ContentKey maxKey -
prefixKey
protected org.projectnessie.model.ContentKey prefixKey -
filter
-
-
Constructor Details
-
BaseGetDiffBuilder
-
-
Method Details
-
fromRefName
- Specified by:
fromRefNamein interfaceGetDiffBuilder
-
fromHashOnRef
- Specified by:
fromHashOnRefin interfaceGetDiffBuilder
-
toRefName
- Specified by:
toRefNamein interfaceGetDiffBuilder
-
toHashOnRef
- Specified by:
toHashOnRefin interfaceGetDiffBuilder
-
maxRecords
Description copied from interface:PagingBuilderSets the maximum number of records to be returned in a single response object from thePagingBuilder.get()method.This setter reflects the OpenAPI parameter
maxRecordsin a paged request.- Specified by:
maxRecordsin interfacePagingBuilder<GetDiffBuilder,org.projectnessie.model.DiffResponse, org.projectnessie.model.DiffResponse.DiffEntry>
-
pageToken
Description copied from interface:PagingBuilderSets the page token from the previous'PagingBuilder.get()method invocation. When usingPagingBuilder.stream()methods this parameter must not be set.Only for manual paging via
PagingBuilder.get()- do not call when using any of thePagingBuilder.stream()functions.This setter reflects the OpenAPI parameter
pageTokenin a paged request.- Specified by:
pageTokenin interfacePagingBuilder<GetDiffBuilder,org.projectnessie.model.DiffResponse, org.projectnessie.model.DiffResponse.DiffEntry>
-
key
- Specified by:
keyin interfaceKeyRangeBuilder<PARAMS>
-
keys
- Specified by:
keysin interfaceKeyRangeBuilder<PARAMS>
-
minKey
- Specified by:
minKeyin interfaceKeyRangeBuilder<PARAMS>
-
maxKey
- Specified by:
maxKeyin interfaceKeyRangeBuilder<PARAMS>
-
prefixKey
- Specified by:
prefixKeyin interfaceKeyRangeBuilder<PARAMS>
-
filter
Description copied from interface:QueryBuilderRequired: the CEL script.- Specified by:
filterin interfaceQueryBuilder<PARAMS>
-
get
public org.projectnessie.model.DiffResponse get() throws org.projectnessie.error.NessieNotFoundExceptionDescription copied from interface:PagingBuilderAdvanced 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, usePagingBuilder.stream()instead.- Specified by:
getin interfaceGetDiffBuilder- Specified by:
getin interfacePagingBuilder<GetDiffBuilder,org.projectnessie.model.DiffResponse, org.projectnessie.model.DiffResponse.DiffEntry> - Throws:
org.projectnessie.error.NessieNotFoundException
-
params
-
get
protected abstract org.projectnessie.model.DiffResponse get(PARAMS p) throws org.projectnessie.error.NessieNotFoundException - Throws:
org.projectnessie.error.NessieNotFoundException
-
stream
public Stream<org.projectnessie.model.DiffResponse.DiffEntry> stream() throws org.projectnessie.error.NessieNotFoundExceptionDescription copied from interface:PagingBuilderRetrieve entries/results as a JavaStream, uses automatic paging.- Specified by:
streamin interfacePagingBuilder<GetDiffBuilder,org.projectnessie.model.DiffResponse, org.projectnessie.model.DiffResponse.DiffEntry> - Throws:
org.projectnessie.error.NessieNotFoundException
-