Package org.projectnessie.client.builder
Class BaseGetEntriesBuilder<PARAMS>
- java.lang.Object
-
- org.projectnessie.client.builder.BaseGetEntriesBuilder<PARAMS>
-
- All Implemented Interfaces:
GetEntriesBuilder,KeyRangeBuilder<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.util.List<org.projectnessie.model.ContentKey>keysprotected org.projectnessie.model.ContentKeymaxKeyprotected java.lang.IntegermaxRecordsprotected org.projectnessie.model.ContentKeyminKeyprotected java.lang.IntegernamespaceDepthprotected org.projectnessie.model.ContentKeyprefixKeyprotected java.lang.StringrefNameprotected booleanwithContent
-
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)GetEntriesBuilderkey(org.projectnessie.model.ContentKey key)GetEntriesBuilderkeys(java.util.Collection<org.projectnessie.model.ContentKey> keys)GetEntriesBuildermaxKey(org.projectnessie.model.ContentKey maxKey)GetEntriesBuildermaxRecords(int maxRecords)Sets the maximum number of records to be returned in a single response object from thePagingBuilder.get()method.GetEntriesBuilderminKey(org.projectnessie.model.ContentKey minKey)GetEntriesBuildernamespaceDepth(java.lang.Integer namespaceDepth)GetEntriesBuilderpageToken(java.lang.String pageToken)Sets the page token from the previous'PagingBuilder.get()method invocation.protected abstract PARAMSparams()GetEntriesBuilderprefixKey(org.projectnessie.model.ContentKey prefixKey)RrefName(java.lang.String refName)java.util.stream.Stream<org.projectnessie.model.EntriesResponse.Entry>stream()Retrieve entries/results as a JavaStream, uses automatic paging.GetEntriesBuilderwithContent(boolean withContent)-
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
-
-
-
-
Field Detail
-
maxRecords
protected java.lang.Integer maxRecords
-
keys
protected final java.util.List<org.projectnessie.model.ContentKey> keys
-
minKey
protected org.projectnessie.model.ContentKey minKey
-
maxKey
protected org.projectnessie.model.ContentKey maxKey
-
prefixKey
protected org.projectnessie.model.ContentKey prefixKey
-
filter
protected java.lang.String filter
-
namespaceDepth
protected java.lang.Integer namespaceDepth
-
withContent
protected boolean withContent
-
refName
protected java.lang.String refName
-
hashOnRef
protected java.lang.String hashOnRef
-
-
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>
-
key
public GetEntriesBuilder key(org.projectnessie.model.ContentKey key)
- Specified by:
keyin interfaceKeyRangeBuilder<PARAMS>
-
keys
public GetEntriesBuilder keys(java.util.Collection<org.projectnessie.model.ContentKey> keys)
- Specified by:
keysin interfaceKeyRangeBuilder<PARAMS>
-
minKey
public GetEntriesBuilder minKey(org.projectnessie.model.ContentKey minKey)
- Specified by:
minKeyin interfaceKeyRangeBuilder<PARAMS>
-
maxKey
public GetEntriesBuilder maxKey(org.projectnessie.model.ContentKey maxKey)
- Specified by:
maxKeyin interfaceKeyRangeBuilder<PARAMS>
-
prefixKey
public GetEntriesBuilder prefixKey(org.projectnessie.model.ContentKey prefixKey)
- Specified by:
prefixKeyin interfaceKeyRangeBuilder<PARAMS>
-
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
-
withContent
public GetEntriesBuilder withContent(boolean withContent)
- Specified by:
withContentin 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>>
-
-