Package org.projectnessie.client.builder
Class BaseGetAllReferencesBuilder<PARAMS>
java.lang.Object
org.projectnessie.client.builder.BaseGetAllReferencesBuilder<PARAMS>
- All Implemented Interfaces:
GetAllReferencesBuilder,PagingBuilder<GetAllReferencesBuilder,,org.projectnessie.model.ReferencesResponse, org.projectnessie.model.Reference> QueryBuilder<GetAllReferencesBuilder>
public abstract class BaseGetAllReferencesBuilder<PARAMS>
extends Object
implements GetAllReferencesBuilder
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseGetAllReferencesBuilder(BiFunction<PARAMS, String, PARAMS> paramsForPage) -
Method Summary
Modifier and TypeMethodDescriptionfetch(org.projectnessie.model.FetchOption fetchOption) Will fetch additional metadata aboutBranch/Taginstances, 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.Required: the CEL script.org.projectnessie.model.ReferencesResponseget()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.ReferencesResponsemaxRecords(int maxRecords) Sets the maximum number of records to be returned in a single response object from thePagingBuilder.get()method.Sets the page token from the previous'PagingBuilder.get()method invocation.protected abstract PARAMSparams()Stream<org.projectnessie.model.Reference> stream()Retrieve entries/results as a JavaStream, uses automatic paging.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.GetAllReferencesBuilder
fetch
-
Field Details
-
maxRecords
-
fetchOption
protected org.projectnessie.model.FetchOption fetchOption -
filter
-
-
Constructor Details
-
BaseGetAllReferencesBuilder
-
-
Method Details
-
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<GetAllReferencesBuilder,org.projectnessie.model.ReferencesResponse, org.projectnessie.model.Reference>
-
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<GetAllReferencesBuilder,org.projectnessie.model.ReferencesResponse, org.projectnessie.model.Reference>
-
fetch
Description copied from interface:GetAllReferencesBuilderWill fetch additional metadata aboutBranch/Taginstances, 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:
fetchin interfaceGetAllReferencesBuilder- Parameters:
fetchOption- The option indicating how much info to fetch- Returns:
GetAllReferencesBuilder
-
filter
Description copied from interface:QueryBuilderRequired: the CEL script.- Specified by:
filterin interfaceQueryBuilder<PARAMS>
-
params
-
get
-
get
public org.projectnessie.model.ReferencesResponse get()Description 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 interfaceGetAllReferencesBuilder- Specified by:
getin interfacePagingBuilder<GetAllReferencesBuilder,org.projectnessie.model.ReferencesResponse, org.projectnessie.model.Reference>
-
stream
public Stream<org.projectnessie.model.Reference> stream() throws org.projectnessie.error.NessieNotFoundExceptionDescription copied from interface:PagingBuilderRetrieve entries/results as a JavaStream, uses automatic paging.- Specified by:
streamin interfacePagingBuilder<GetAllReferencesBuilder,org.projectnessie.model.ReferencesResponse, org.projectnessie.model.Reference> - Throws:
org.projectnessie.error.NessieNotFoundException
-