Package org.projectnessie.client.builder
Class BaseGetEntriesBuilder<PARAMS>
- java.lang.Object
-
- org.projectnessie.client.builder.BaseGetEntriesBuilder<PARAMS>
-
- All Implemented Interfaces:
GetEntriesBuilder,OnReferenceBuilder<GetEntriesBuilder>,PagingBuilder<GetEntriesBuilder,org.projectnessie.model.EntriesResponse,org.projectnessie.model.EntriesResponse.Entry>,QueryBuilder<GetEntriesBuilder>
public abstract class BaseGetEntriesBuilder<PARAMS> extends java.lang.Object implements GetEntriesBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringfilterprotected java.lang.StringhashOnRefprotected java.lang.IntegermaxRecordsprotected java.lang.IntegernamespaceDepthprotected java.lang.StringrefName
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseGetEntriesBuilder(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 GetEntriesBuilderfilter(java.lang.String filter)Required: the CEL script.org.projectnessie.model.EntriesResponseget()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.EntriesResponseget(PARAMS p)RhashOnRef(java.lang.String hashOnRef)GetEntriesBuildermaxRecords(int maxRecords)Sets the maximum number of records to be returned in a single response object from thePagingBuilder.get()method.GetEntriesBuildernamespaceDepth(java.lang.Integer namespaceDepth)GetEntriesBuilderpageToken(java.lang.String pageToken)Sets the page token from the previous'PagingBuilder.get()method invocation.protected abstract PARAMSparams()RrefName(java.lang.String refName)java.util.stream.Stream<org.projectnessie.model.EntriesResponse.Entry>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.OnReferenceBuilder
hashOnRef, reference, refName
-
-
-
-
Method Detail
-
maxRecords
public GetEntriesBuilder 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<GetEntriesBuilder,org.projectnessie.model.EntriesResponse,org.projectnessie.model.EntriesResponse.Entry>
-
pageToken
public GetEntriesBuilder 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<GetEntriesBuilder,org.projectnessie.model.EntriesResponse,org.projectnessie.model.EntriesResponse.Entry>
-
filter
public GetEntriesBuilder filter(java.lang.String filter)
Description copied from interface:QueryBuilderRequired: the CEL script.- Specified by:
filterin interfaceQueryBuilder<PARAMS>
-
namespaceDepth
public GetEntriesBuilder namespaceDepth(java.lang.Integer namespaceDepth)
- Specified by:
namespaceDepthin interfaceGetEntriesBuilder
-
params
protected abstract PARAMS params()
-
get
protected abstract org.projectnessie.model.EntriesResponse get(PARAMS p) throws org.projectnessie.error.NessieNotFoundException
- Throws:
org.projectnessie.error.NessieNotFoundException
-
get
public org.projectnessie.model.EntriesResponse 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 interfaceGetEntriesBuilder- Specified by:
getin interfacePagingBuilder<GetEntriesBuilder,org.projectnessie.model.EntriesResponse,org.projectnessie.model.EntriesResponse.Entry>- Throws:
org.projectnessie.error.NessieNotFoundException
-
stream
public java.util.stream.Stream<org.projectnessie.model.EntriesResponse.Entry> stream() throws org.projectnessie.error.NessieNotFoundExceptionDescription copied from interface:PagingBuilderRetrieve entries/results as a JavaStream, uses automatic paging.- Specified by:
streamin interfacePagingBuilder<GetEntriesBuilder,org.projectnessie.model.EntriesResponse,org.projectnessie.model.EntriesResponse.Entry>- Throws:
org.projectnessie.error.NessieNotFoundException
-
refName
public R refName(java.lang.String refName)
- Specified by:
refNamein interfaceOnReferenceBuilder<R extends OnReferenceBuilder<R>>
-
hashOnRef
public R hashOnRef(java.lang.String hashOnRef)
- Specified by:
hashOnRefin interfaceOnReferenceBuilder<R extends OnReferenceBuilder<R>>
-
-