Class HttpApiV2
- All Implemented Interfaces:
AutoCloseable,NessieApi,NessieApiV1,NessieApiV2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUpdate a branch.Update a branch or a tag (make it point to an arbitrary commit).Update a tag.voidclose()Create a new reference.Delete a branch.Delete a branch or a tag.Delete a tag.Get all references.Retrieve the commit log for a ref, potentially truncated by the backend.org.projectnessie.model.NessieConfigurationGet the server configuration.org.projectnessie.model.BranchGet details for the default reference.getDiff()Retrieve a diff between two references.Retrieve objects for a ref, potentially truncated by the backend.Get details of a particular ref, if it exists.merge mergeRef onto ref.Retrieve the recorded recent history of a reference.cherry pick a set of commits into a branch.<C> Optional<C>unwrapClient(Class<C> clientType) Returns the possibly protocol but definitely implementation specific client instance.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.NessieApiV2
createNamespace, deleteNamespace, getMultipleNamespaces, getNamespace, getRefLog, updateProperties
-
Constructor Details
-
HttpApiV2
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceNessieApi
-
unwrapClient
Description copied from interface:NessieApiReturns the possibly protocol but definitely implementation specific client instance.- Specified by:
unwrapClientin interfaceNessieApi- Type Parameters:
C- requested/expected client type.- Parameters:
clientType- Expected client type.- Returns:
- an
Optionalwith either the client of the requested type or empty.
-
getConfig
public org.projectnessie.model.NessieConfiguration getConfig()Description copied from interface:NessieApiV1Get the server configuration.- Specified by:
getConfigin interfaceNessieApiV1
-
getDefaultBranch
public org.projectnessie.model.Branch getDefaultBranch() throws org.projectnessie.error.NessieNotFoundExceptionDescription copied from interface:NessieApiV1Get details for the default reference.- Specified by:
getDefaultBranchin interfaceNessieApiV1- Throws:
org.projectnessie.error.NessieNotFoundException
-
getContent
- Specified by:
getContentin interfaceNessieApiV1
-
getAllReferences
Description copied from interface:NessieApiV1Get all references.- Specified by:
getAllReferencesin interfaceNessieApiV1
-
createReference
Description copied from interface:NessieApiV1Create a new reference.- Specified by:
createReferencein interfaceNessieApiV1
-
getReference
Description copied from interface:NessieApiV1Get details of a particular ref, if it exists.- Specified by:
getReferencein interfaceNessieApiV1
-
referenceHistory
Description copied from interface:NessieApiV2Retrieve the recorded recent history of a reference.A reference's history is a size and time limited record of changes of the reference's current pointer, aka HEAD. The size and time limits are configured in the Nessie server configuration.
- Specified by:
referenceHistoryin interfaceNessieApiV2
-
getEntries
Description copied from interface:NessieApiV1Retrieve objects for a ref, potentially truncated by the backend.Retrieves up to
maxRecordsobjects for the given named reference (tag or branch). The backend may respect the givenmaxrecords hint, but return less or more entries. Backends may also cap the returned entries at a hard-coded limit, the default REST server implementation has such a hard-coded limit.Invoking
getEntries()does not guarantee to return all commit log entries of a given reference, because the result can be truncated by the backend.To implement paging, check
EntriesResponse.isHasMore()and, iftrue, pass the value ofEntriesResponse.getToken()in the next invocation ofgetEntries()as thepageTokenparameter.- Specified by:
getEntriesin interfaceNessieApiV1
-
getCommitLog
Description copied from interface:NessieApiV1Retrieve the commit log for a ref, potentially truncated by the backend.Retrieves up to
maxRecordscommit-log-entries starting at the HEAD of the given named reference (tag or branch). The backend may respect the givenmaxrecords hint, but return less or more entries. Backends may also cap the returned entries at a hard-coded limit, the default REST server implementation has such a hard-coded limit.Invoking
getCommitLog()does not guarantee to return all commit log entries of a given reference, because the result can be truncated by the backend.To implement paging, check
LogResponse.isHasMore()and, iftrue, pass the value ofLogResponse.getToken()in the next invocation ofgetCommitLog()as thepageTokenparameter.- Specified by:
getCommitLogin interfaceNessieApiV1
-
assignTag
Description copied from interface:NessieApiV2Update a tag.- Specified by:
assignTagin interfaceNessieApiV1- Specified by:
assignTagin interfaceNessieApiV2
-
deleteTag
Description copied from interface:NessieApiV2Delete a tag.- Specified by:
deleteTagin interfaceNessieApiV1- Specified by:
deleteTagin interfaceNessieApiV2
-
assignBranch
Description copied from interface:NessieApiV2Update a branch.- Specified by:
assignBranchin interfaceNessieApiV1- Specified by:
assignBranchin interfaceNessieApiV2
-
deleteBranch
Description copied from interface:NessieApiV2Delete a branch.- Specified by:
deleteBranchin interfaceNessieApiV1- Specified by:
deleteBranchin interfaceNessieApiV2
-
assignReference
Description copied from interface:NessieApiV2Update a branch or a tag (make it point to an arbitrary commit).- Specified by:
assignReferencein interfaceNessieApiV2
-
deleteReference
Description copied from interface:NessieApiV2Delete a branch or a tag.- Specified by:
deleteReferencein interfaceNessieApiV2
-
transplantCommitsIntoBranch
Description copied from interface:NessieApiV1cherry pick a set of commits into a branch.- Specified by:
transplantCommitsIntoBranchin interfaceNessieApiV1
-
mergeRefIntoBranch
Description copied from interface:NessieApiV1merge mergeRef onto ref.- Specified by:
mergeRefIntoBranchin interfaceNessieApiV1
-
commitMultipleOperations
- Specified by:
commitMultipleOperationsin interfaceNessieApiV1
-
getDiff
Description copied from interface:NessieApiV1Retrieve a diff between two references.- Specified by:
getDiffin interfaceNessieApiV1
-
getRepositoryConfig
- Specified by:
getRepositoryConfigin interfaceNessieApiV2
-
updateRepositoryConfig
- Specified by:
updateRepositoryConfigin interfaceNessieApiV2
-