Class HttpApiV1
- All Implemented Interfaces:
AutoCloseable,NessieApi,NessieApiV1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUpdate a branch.Update a tag.voidclose()Create a singleNamespace.Create a new reference.Delete a branch.Delete a singleNamespace.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.Fetch one or moreNamespaces based on a given prefix.Fetch a singleNamespace.Get details of a particular ref, if it exists.Deprecated.merge mergeRef onto ref.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.Updates properties of aNamespace.
-
Constructor Details
-
HttpApiV1
-
-
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
-
getReference
Description copied from interface:NessieApiV1Get details of a particular ref, if it exists.- Specified by:
getReferencein interfaceNessieApiV1
-
createReference
Description copied from interface:NessieApiV1Create a new reference.- Specified by:
createReferencein interfaceNessieApiV1
-
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:NessieApiV1Update a tag.- Specified by:
assignTagin interfaceNessieApiV1
-
deleteTag
Description copied from interface:NessieApiV1Delete a tag.- Specified by:
deleteTagin interfaceNessieApiV1
-
assignBranch
Description copied from interface:NessieApiV1Update a branch.- Specified by:
assignBranchin interfaceNessieApiV1
-
deleteBranch
Description copied from interface:NessieApiV1Delete a branch.- Specified by:
deleteBranchin interfaceNessieApiV1
-
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
-
getRefLog
Deprecated.Description copied from interface:NessieApiV1Retrieve the reflog from the HEAD of the RefLog resource, potentially truncated by the backend.The Nessie reflog in this form is deprecated, likely for removal.
Retrieves up to
maxRecordsrefLog-entries starting at the HEAD of the RefLog resource. 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
getRefLog()does not guarantee to return all reflog entries, because the result can be truncated by the backend.To implement paging, check
RefLogResponse.isHasMore()and, iftrue, pass the value ofRefLogResponse.getToken()in the next invocation ofgetRefLog()as thepageTokenparameter.- Specified by:
getRefLogin interfaceNessieApiV1
-
getNamespace
Description copied from interface:NessieApiV1Fetch a singleNamespace.- Specified by:
getNamespacein interfaceNessieApiV1
-
getMultipleNamespaces
Description copied from interface:NessieApiV1Fetch one or moreNamespaces based on a given prefix.- Specified by:
getMultipleNamespacesin interfaceNessieApiV1
-
createNamespace
Description copied from interface:NessieApiV1Create a singleNamespace.- Specified by:
createNamespacein interfaceNessieApiV1
-
deleteNamespace
Description copied from interface:NessieApiV1Delete a singleNamespace.- Specified by:
deleteNamespacein interfaceNessieApiV1
-
updateProperties
Description copied from interface:NessieApiV1Updates properties of aNamespace.- Specified by:
updatePropertiesin interfaceNessieApiV1
-