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>
public abstract class BaseGetDiffBuilder<PARAMS> extends java.lang.Object implements GetDiffBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringfilterprotected java.lang.StringfromHashOnRefprotected java.lang.StringfromRefNameprotected java.util.List<org.projectnessie.model.ContentKey>keysprotected org.projectnessie.model.ContentKeymaxKeyprotected java.lang.IntegermaxRecordsprotected org.projectnessie.model.ContentKeyminKeyprotected org.projectnessie.model.ContentKeyprefixKeyprotected java.lang.StringtoHashOnRefprotected java.lang.StringtoRefName
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseGetDiffBuilder(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 GetDiffBuilderfilter(java.lang.String filter)Required: the CEL script.GetDiffBuilderfromHashOnRef(java.lang.String fromHashOnRef)GetDiffBuilderfromRefName(java.lang.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.DiffResponseget(PARAMS p)GetDiffBuilderkey(org.projectnessie.model.ContentKey key)GetDiffBuilderkeys(java.util.Collection<org.projectnessie.model.ContentKey> keys)GetDiffBuildermaxKey(org.projectnessie.model.ContentKey maxKey)GetDiffBuildermaxRecords(int maxRecords)Sets the maximum number of records to be returned in a single response object from thePagingBuilder.get()method.GetDiffBuilderminKey(org.projectnessie.model.ContentKey minKey)GetDiffBuilderpageToken(java.lang.String pageToken)Sets the page token from the previous'PagingBuilder.get()method invocation.protected abstract PARAMSparams()GetDiffBuilderprefixKey(org.projectnessie.model.ContentKey prefixKey)java.util.stream.Stream<org.projectnessie.model.DiffResponse.DiffEntry>stream()Retrieve entries/results as a JavaStream, uses automatic paging.GetDiffBuildertoHashOnRef(java.lang.String toHashOnRef)GetDiffBuildertoRefName(java.lang.String toRefName)-
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.GetDiffBuilder
fromRef, toRef
-
-
-
-
Field Detail
-
maxRecords
protected java.lang.Integer maxRecords
-
fromRefName
protected java.lang.String fromRefName
-
fromHashOnRef
protected java.lang.String fromHashOnRef
-
toRefName
protected java.lang.String toRefName
-
toHashOnRef
protected java.lang.String toHashOnRef
-
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
-
-
Method Detail
-
fromRefName
public GetDiffBuilder fromRefName(java.lang.String fromRefName)
- Specified by:
fromRefNamein interfaceGetDiffBuilder
-
fromHashOnRef
public GetDiffBuilder fromHashOnRef(java.lang.String fromHashOnRef)
- Specified by:
fromHashOnRefin interfaceGetDiffBuilder
-
toRefName
public GetDiffBuilder toRefName(java.lang.String toRefName)
- Specified by:
toRefNamein interfaceGetDiffBuilder
-
toHashOnRef
public GetDiffBuilder toHashOnRef(java.lang.String toHashOnRef)
- Specified by:
toHashOnRefin interfaceGetDiffBuilder
-
maxRecords
public GetDiffBuilder 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<GetDiffBuilder,org.projectnessie.model.DiffResponse,org.projectnessie.model.DiffResponse.DiffEntry>
-
pageToken
public GetDiffBuilder 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<GetDiffBuilder,org.projectnessie.model.DiffResponse,org.projectnessie.model.DiffResponse.DiffEntry>
-
key
public GetDiffBuilder key(org.projectnessie.model.ContentKey key)
- Specified by:
keyin interfaceKeyRangeBuilder<PARAMS>
-
keys
public GetDiffBuilder keys(java.util.Collection<org.projectnessie.model.ContentKey> keys)
- Specified by:
keysin interfaceKeyRangeBuilder<PARAMS>
-
minKey
public GetDiffBuilder minKey(org.projectnessie.model.ContentKey minKey)
- Specified by:
minKeyin interfaceKeyRangeBuilder<PARAMS>
-
maxKey
public GetDiffBuilder maxKey(org.projectnessie.model.ContentKey maxKey)
- Specified by:
maxKeyin interfaceKeyRangeBuilder<PARAMS>
-
prefixKey
public GetDiffBuilder prefixKey(org.projectnessie.model.ContentKey prefixKey)
- Specified by:
prefixKeyin interfaceKeyRangeBuilder<PARAMS>
-
filter
public GetDiffBuilder filter(java.lang.String 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
protected abstract PARAMS params()
-
get
protected abstract org.projectnessie.model.DiffResponse get(PARAMS p) throws org.projectnessie.error.NessieNotFoundException
- Throws:
org.projectnessie.error.NessieNotFoundException
-
stream
public java.util.stream.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
-
-