public interface NodeStoreBranch
NodeStore to which transient changes can be applied and later merged
back or discarded.| Modifier and Type | Method and Description |
|---|---|
NodeState |
getBase()
Returns the base state of this branch.
|
NodeState |
getHead()
Returns the head state of this branch.
|
NodeState |
merge(CommitHook hook,
CommitInfo info)
Merges the changes in this branch to the main content tree.
|
void |
rebase()
Rebase the changes from this branch on top of the current
root.
|
void |
setRoot(NodeState newRoot)
Updates the state of the content tree of this private branch.
|
@Nonnull NodeState getBase()
@Nonnull NodeState getHead()
setRoot(NodeState).IllegalStateException - if the branch is already mergedvoid setRoot(NodeState newRoot)
newRoot - new root node stateIllegalStateException - if the branch is already merged@Nonnull NodeState merge(@Nonnull CommitHook hook, @Nonnull CommitInfo info) throws org.apache.jackrabbit.oak.api.CommitFailedException
hook - the commit hook to apply while merging changesinfo - commit info associated with this merge operationorg.apache.jackrabbit.oak.api.CommitFailedException - if the merge failedIllegalStateException - if the branch is already mergedvoid rebase()
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.