Interface NessieApiV1
-
- All Superinterfaces:
AutoCloseable,NessieApi
- All Known Implementing Classes:
HttpApiV1
public interface NessieApiV1 extends NessieApi
Interface for the Nessie V1 API implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AssignBranchBuilderassignBranch()Update a branch.AssignTagBuilderassignTag()Update a tag.CommitMultipleOperationsBuildercommitMultipleOperations()CreateReferenceBuildercreateReference()Create a new reference.DeleteBranchBuilderdeleteBranch()Delete a branch.DeleteTagBuilderdeleteTag()Delete a tag.GetAllReferencesBuildergetAllReferences()Get all references.GetCommitLogBuildergetCommitLog()Retrieve the commit log for a ref, potentially truncated by the backend.NessieConfigurationgetConfig()Get the server configuration.GetContentsBuildergetContents()BranchgetDefaultBranch()Get details for the default reference.GetEntriesBuildergetEntries()Retrieve objects for a ref, potentially truncated by the backend.GetReferenceBuildergetReference()Get details of a particular ref, if it exists.MergeReferenceBuildermergeRefIntoBranch()merge mergeRef onto ref.TransplantCommitsBuildertransplantCommitsIntoBranch()cherry pick a set of commits into a branch.
-
-
-
Method Detail
-
getConfig
NessieConfiguration getConfig()
Get the server configuration.
-
getDefaultBranch
Branch getDefaultBranch() throws NessieNotFoundException
Get details for the default reference.- Throws:
NessieNotFoundException
-
getContents
GetContentsBuilder getContents()
-
getAllReferences
GetAllReferencesBuilder getAllReferences()
Get all references.
-
createReference
CreateReferenceBuilder createReference()
Create a new reference.
-
getReference
GetReferenceBuilder getReference()
Get details of a particular ref, if it exists.
-
getEntries
GetEntriesBuilder getEntries()
Retrieve 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.hasMore()and, iftrue, pass the value ofEntriesResponse.getToken()in the next invocation ofgetEntries()as thepageTokenparameter.See
org.projectnessie.client.StreamingUtilinnessie-client.
-
getCommitLog
GetCommitLogBuilder getCommitLog()
Retrieve 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.hasMore()and, iftrue, pass the value ofLogResponse.getToken()in the next invocation ofgetCommitLog()as thepageTokenparameter.See
org.projectnessie.client.StreamingUtilinnessie-client.
-
assignTag
AssignTagBuilder assignTag()
Update a tag.
-
deleteTag
DeleteTagBuilder deleteTag()
Delete a tag.
-
assignBranch
AssignBranchBuilder assignBranch()
Update a branch.
-
deleteBranch
DeleteBranchBuilder deleteBranch()
Delete a branch.
-
transplantCommitsIntoBranch
TransplantCommitsBuilder transplantCommitsIntoBranch()
cherry pick a set of commits into a branch.
-
mergeRefIntoBranch
MergeReferenceBuilder mergeRefIntoBranch()
merge mergeRef onto ref.
-
commitMultipleOperations
CommitMultipleOperationsBuilder commitMultipleOperations()
-
-