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 java.lang.Object implements GetAllReferencesBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected org.projectnessie.model.FetchOptionfetchOptionprotected java.lang.Stringfilterprotected java.lang.IntegermaxRecords
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseGetAllReferencesBuilder(java.util.function.BiFunction<PARAMS,java.lang.String,PARAMS> paramsForPage)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description GetAllReferencesBuilderfetch(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.GetAllReferencesBuilderfilter(java.lang.String filter)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.ReferencesResponseget(PARAMS p)GetAllReferencesBuildermaxRecords(int maxRecords)Sets the maximum number of records to be returned in a single response object from thePagingBuilder.get()method.GetAllReferencesBuilderpageToken(java.lang.String pageToken)Sets the page token from the previous'PagingBuilder.get()method invocation.protected abstract PARAMSparams()java.util.stream.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, wait
-
Methods inherited from interface org.projectnessie.client.api.GetAllReferencesBuilder
fetch
-
-
-
-
Method Detail
-
maxRecords
public GetAllReferencesBuilder maxRecords(int 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
public GetAllReferencesBuilder pageToken(java.lang.String 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
public GetAllReferencesBuilder fetch(org.projectnessie.model.FetchOption fetchOption)
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
public GetAllReferencesBuilder filter(java.lang.String filter)
Description copied from interface:QueryBuilderRequired: the CEL script.- Specified by:
filterin interfaceQueryBuilder<PARAMS>
-
params
protected abstract PARAMS params()
-
get
protected abstract org.projectnessie.model.ReferencesResponse get(PARAMS p)
-
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 java.util.stream.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
-
-