Uses of Interface
org.apache.jackrabbit.oak.spi.state.NodeState
Packages that use NodeState
Package
Description
Internal utilities and implementation of a memory-based store.
-
Uses of NodeState in org.apache.jackrabbit.oak.json
Methods in org.apache.jackrabbit.oak.json that return NodeStateModifier and TypeMethodDescriptionJsonDeserializer.deserialize(String json) JsonDeserializer.deserialize(String line, int pos) JsonDeserializer.deserialize(org.apache.jackrabbit.oak.commons.json.JsopReader reader) Methods in org.apache.jackrabbit.oak.json with parameters of type NodeStateModifier and TypeMethodDescriptionbooleanJsopDiff.childNodeAdded(String name, NodeState after) booleanJsopDiff.childNodeChanged(String name, NodeState before, NodeState after) booleanJsopDiff.childNodeDeleted(String name, NodeState before) JsonUtils.convertNodeStateToMap(NodeState nodeState, int maxDepth, boolean shouldSerializeHiddenNodesOrProperties) Convert a NodeState to a Map representationstatic StringJsopDiff.diffToJsop(NodeState before, NodeState after) Create the JSOP diff betweenbeforeandafterfor debugging purposes.static StringJsonUtils.nodeStateToJson(NodeState nodeState, int maxDepth) Converts a NodeState to JSON string with specified depthvoidvoid -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.memory
Classes in org.apache.jackrabbit.oak.plugins.memory that implement NodeStateModifier and TypeClassDescriptionfinal classSingleton instances of empty and non-existent node states, i.e.classImmutable snapshot of a mutable node state.Fields in org.apache.jackrabbit.oak.plugins.memory declared as NodeStateModifier and TypeFieldDescriptionstatic final NodeStateEmptyNodeState.EMPTY_NODEstatic final NodeStateEmptyNodeState.MISSING_NODEMethods in org.apache.jackrabbit.oak.plugins.memory with type parameters of type NodeStateModifier and TypeMethodDescriptionstatic <E extends Map.Entry<String,? extends NodeState>>
Iterable<ChildNodeEntry>Methods in org.apache.jackrabbit.oak.plugins.memory that return NodeStateModifier and TypeMethodDescription@NotNull NodeStateMemoryNodeBuilder.getBaseState()@NotNull NodeStateModifiedNodeState.getBaseState()@NotNull NodeStateEmptyNodeState.getChildNode(@NotNull String name) @NotNull NodeStateModifiedNodeState.getChildNode(@NotNull String name) MemoryChildNodeEntry.getNodeState()@NotNull NodeStateMemoryNodeBuilder.getNodeState()MemoryNodeStore.getRoot()MemoryNodeStore.merge(@NotNull NodeBuilder builder, @NotNull CommitHook commitHook, @NotNull CommitInfo info) This implementation is equal to first rebasing the builder and then applying it to a new branch and immediately merging it back.MemoryNodeStore.rebase(@NotNull NodeBuilder builder) This implementation is equal to applying the differences between the builders base state and its head state to a fresh builder on the stores root state usingConflictAnnotatingRebaseDifffor resolving conflicts.MemoryNodeStore.reset(@NotNull NodeBuilder builder) This implementation is equal resetting the builder to the root of the store and returning the resulting node state from the builder.@Nullable NodeStatestatic NodeState"Squeezes"ModifiedNodeStateinstances into equivalentMemoryNodeStates.Methods in org.apache.jackrabbit.oak.plugins.memory with parameters of type NodeStateModifier and TypeMethodDescriptionbooleanEmptyNodeState.compareAgainstBaseState(NodeState base, NodeStateDiff diff) booleanModifiedNodeState.compareAgainstBaseState(NodeState base, NodeStateDiff diff) Since we keep track of an explicit base node state for aModifiedNodeStateinstance, we can do this in two steps: first compare all the modified properties and child nodes to those of the given base state, and then compare the base states to each other, ignoring all changed properties and child nodes that were already covered earlier.static booleanEmptyNodeState.compareAgainstEmptyState(NodeState state, NodeStateDiff diff) static booleanEmptyNodeState.isEmptyState(NodeState state) voidThrows away all changes in this builder and resets the base to the given node state.protected voidReplaces the current state of this builder with the given node state.@NotNull NodeBuilderMemoryNodeBuilder.setChildNode(@NotNull String name, @NotNull NodeState state) static NodeState"Squeezes"ModifiedNodeStateinstances into equivalentMemoryNodeStates.Constructors in org.apache.jackrabbit.oak.plugins.memory with parameters of type NodeStateModifierConstructorDescriptionMemoryChildNodeEntry(String name, NodeState node) Creates a child node entry with the given name and referenced child node state.MemoryNodeBuilder(@NotNull NodeState base) Creates a new in-memory node state builder rooted at and based on the passedbasestate.MemoryNodeStore(NodeState state) -
Uses of NodeState in org.apache.jackrabbit.oak.spi.commit
Methods in org.apache.jackrabbit.oak.spi.commit that return NodeStateModifier and TypeMethodDescription@NotNull NodeStateCommitHook.processCommit(NodeState before, NodeState after, CommitInfo info) Validates and/or modifies the given content change before it gets persisted.@NotNull NodeStateCompositeHook.processCommit(NodeState before, NodeState after, CommitInfo info) @NotNull NodeStateEditorHook.processCommit(@NotNull NodeState before, @NotNull NodeState after, @NotNull CommitInfo info) @NotNull NodeStateEmptyHook.processCommit(NodeState before, NodeState after, CommitInfo info) @NotNull NodeStateResetCommitAttributeHook.processCommit(NodeState before, NodeState after, CommitInfo info) Methods in org.apache.jackrabbit.oak.spi.commit with parameters of type NodeStateModifier and TypeMethodDescription@NotNull ThreeWayConflictHandler.ResolutionCompositeConflictHandler.addExistingNode(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState ours, @NotNull NodeState theirs) @NotNull PartialConflictHandler.ResolutionConflictHandler.addExistingNode(NodeBuilder parent, String name, NodeState ours, NodeState theirs) Deprecated.The nodeourshas been added toparentwhich conflicts with nodetheirswhich has been added in the persistence store.@Nullable PartialConflictHandler.ResolutionPartialConflictHandler.addExistingNode(NodeBuilder parent, String name, NodeState ours, NodeState theirs) Deprecated.The nodeourshas been added toparentwhich conflicts with nodetheirswhich has been added in the persistence store.@NotNull ThreeWayConflictHandler.ResolutionThreeWayConflictHandler.addExistingNode(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState ours, @NotNull NodeState theirs) The nodeourshas been added toparentwhich conflicts with nodetheirswhich has been added in the persistence store.@NotNull ThreeWayConflictHandler.ResolutionCompositeConflictHandler.changeDeletedNode(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState ours, @NotNull NodeState base) @NotNull PartialConflictHandler.ResolutionConflictHandler.changeDeletedNode(NodeBuilder parent, String name, NodeState ours) Deprecated.The nodeourshas been changed inparentwhile it was removed in the persistence store.@Nullable PartialConflictHandler.ResolutionPartialConflictHandler.changeDeletedNode(NodeBuilder parent, String name, NodeState ours) Deprecated.The nodeourshas been changed inparentwhile it was removed in the persistence store.@NotNull ThreeWayConflictHandler.ResolutionThreeWayConflictHandler.changeDeletedNode(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState ours, @NotNull NodeState base) The nodeourshas been changed inparentwhile it was removed in the persistence store.CompositeEditor.childNodeAdded(String name, NodeState after) DefaultEditor.childNodeAdded(String name, NodeState after) DefaultMoveValidator.childNodeAdded(String name, NodeState after) DefaultValidator.childNodeAdded(String name, NodeState after) @Nullable EditorEditor.childNodeAdded(String name, NodeState after) Processes an added child node.booleanEditorDiff.childNodeAdded(String name, NodeState after) FailingValidator.childNodeAdded(String name, NodeState after) ProgressNotificationEditor.childNodeAdded(String name, NodeState after) @Nullable EditorSubtreeEditor.childNodeAdded(String name, NodeState after) SubtreeExcludingValidator.childNodeAdded(String name, NodeState after) SubtreeValidator.childNodeAdded(String name, NodeState after) @Nullable ValidatorValidator.childNodeAdded(String name, NodeState after) Validate an added node@Nullable EditorVisibleEditor.childNodeAdded(String name, NodeState after) @Nullable ValidatorVisibleValidator.childNodeAdded(String name, NodeState after) CompositeEditor.childNodeChanged(String name, NodeState before, NodeState after) DefaultEditor.childNodeChanged(String name, NodeState before, NodeState after) DefaultMoveValidator.childNodeChanged(String name, NodeState before, NodeState after) DefaultValidator.childNodeChanged(String name, NodeState before, NodeState after) @Nullable EditorEditor.childNodeChanged(String name, NodeState before, NodeState after) Processes a changed child node.booleanEditorDiff.childNodeChanged(String name, NodeState before, NodeState after) FailingValidator.childNodeChanged(String name, NodeState before, NodeState after) ProgressNotificationEditor.childNodeChanged(String name, NodeState before, NodeState after) @Nullable EditorSubtreeEditor.childNodeChanged(String name, NodeState before, NodeState after) SubtreeExcludingValidator.childNodeChanged(String name, NodeState before, NodeState after) SubtreeValidator.childNodeChanged(String name, NodeState before, NodeState after) @Nullable ValidatorValidator.childNodeChanged(String name, NodeState before, NodeState after) Validate a changed node@Nullable EditorVisibleEditor.childNodeChanged(String name, NodeState before, NodeState after) @Nullable ValidatorVisibleValidator.childNodeChanged(String name, NodeState before, NodeState after) CompositeEditor.childNodeDeleted(String name, NodeState before) DefaultEditor.childNodeDeleted(String name, NodeState before) DefaultMoveValidator.childNodeDeleted(String name, NodeState before) DefaultValidator.childNodeDeleted(String name, NodeState before) @Nullable EditorEditor.childNodeDeleted(String name, NodeState before) Processes a deleted child node.booleanEditorDiff.childNodeDeleted(String name, NodeState before) FailingValidator.childNodeDeleted(String name, NodeState before) ProgressNotificationEditor.childNodeDeleted(String name, NodeState before) @Nullable EditorSubtreeEditor.childNodeDeleted(String name, NodeState before) SubtreeExcludingValidator.childNodeDeleted(String name, NodeState before) SubtreeValidator.childNodeDeleted(String name, NodeState before) @Nullable ValidatorValidator.childNodeDeleted(String name, NodeState before) Validate a deleted node@Nullable EditorVisibleEditor.childNodeDeleted(String name, NodeState before) @Nullable ValidatorVisibleValidator.childNodeDeleted(String name, NodeState before) voidBackgroundObserver.contentChanged(@NotNull NodeState root, @NotNull CommitInfo info) voidChangeDispatcher.contentChanged(@NotNull NodeState root, @NotNull CommitInfo info) voidCompositeObserver.contentChanged(@NotNull NodeState root, @NotNull CommitInfo info) final voidDiffObserver.contentChanged(@NotNull NodeState root, @NotNull CommitInfo info) voidEmptyObserver.contentChanged(@NotNull NodeState root, @NotNull CommitInfo info) voidObserver.contentChanged(@NotNull NodeState root, @NotNull CommitInfo info) Observes a content change.@NotNull ThreeWayConflictHandler.ResolutionCompositeConflictHandler.deleteChangedNode(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState theirs, @NotNull NodeState base) @NotNull PartialConflictHandler.ResolutionConflictHandler.deleteChangedNode(NodeBuilder parent, String name, NodeState theirs) Deprecated.The nodetheirschanged in the persistence store while it has been deleted locally.@Nullable PartialConflictHandler.ResolutionPartialConflictHandler.deleteChangedNode(NodeBuilder parent, String name, NodeState theirs) Deprecated.The nodetheirschanged in the persistence store while it has been deleted locally.@NotNull ThreeWayConflictHandler.ResolutionThreeWayConflictHandler.deleteChangedNode(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState theirs, @NotNull NodeState base) The nodetheirschanged in the persistence store while it has been deleted locally.@NotNull ThreeWayConflictHandler.ResolutionCompositeConflictHandler.deleteDeletedNode(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState base) @NotNull ThreeWayConflictHandler.ResolutionThreeWayConflictHandler.deleteDeletedNode(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState base) The nodenamehas been removed inparentwhile it was also removed in the persistence store.voidvoidvoidvoidCalled before the given before and after states are compared.voidvoidvoidvoidprotected abstract NodeStateDiffDiffObserver.getRootDiff(@NotNull NodeState before, @NotNull NodeState after, @NotNull CommitInfo info) Returns the diff handler to be used for the given content change.@Nullable EditorCompositeEditorProvider.getRootEditor(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) @Nullable EditorEditorProvider.getRootEditor(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) Returns an editor for processing changes between the given two states.final @Nullable EditorValidatorProvider.getRootEditor(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) @Nullable EditorWhiteboardEditorProvider.getRootEditor(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) protected abstract @Nullable ValidatorValidatorProvider.getRootValidator(NodeState before, NodeState after, CommitInfo info) Returns a validator for checking the changes between the given two root states.voidvoidvoidvoidCalled after the given before and after states are compared.voidvoidvoidvoidvoidstatic @Nullable org.apache.jackrabbit.oak.api.CommitFailedExceptionValidates and possibly edits the given subtree by diffing and recursing through it.@NotNull NodeStateCommitHook.processCommit(NodeState before, NodeState after, CommitInfo info) Validates and/or modifies the given content change before it gets persisted.@NotNull NodeStateCompositeHook.processCommit(NodeState before, NodeState after, CommitInfo info) @NotNull NodeStateEditorHook.processCommit(@NotNull NodeState before, @NotNull NodeState after, @NotNull CommitInfo info) @NotNull NodeStateEmptyHook.processCommit(NodeState before, NodeState after, CommitInfo info) @NotNull NodeStateResetCommitAttributeHook.processCommit(NodeState before, NodeState after, CommitInfo info) Constructors in org.apache.jackrabbit.oak.spi.commit with parameters of type NodeStateModifierConstructorDescriptionChangeDispatcher(@NotNull NodeState root) Create a new instance for dispatching content changes -
Uses of NodeState in org.apache.jackrabbit.oak.spi.state
Classes in org.apache.jackrabbit.oak.spi.state that implement NodeStateFields in org.apache.jackrabbit.oak.spi.state with type parameters of type NodeStateModifier and TypeFieldDescriptionNodeState.EXISTSPredicate that checks the existence of NodeState instances.Methods in org.apache.jackrabbit.oak.spi.state that return NodeStateModifier and TypeMethodDescription@NotNull NodeStateNodeStoreBranch.getBase()Returns the base state of this branch.@NotNull NodeStateNodeBuilder.getBaseState()Returns the original base state that this builder is modifying.@NotNull NodeStateReadOnlyBuilder.getBaseState()@NotNull NodeStateNodeState.getChildNode(@NotNull String name) Returns the named, possibly non-existent, child node.@NotNull NodeStateNodeStoreBranch.getHead()Returns the head state of this branch.static @NotNull NodeStateGet a possibly non existing child node of a node.@NotNull NodeStateChildNodeEntry.getNodeState()The child node state@NotNull NodeStateNodeBuilder.getNodeState()Returns an immutable node state that matches the current state of the builder.@NotNull NodeStateReadOnlyBuilder.getNodeState()@NotNull NodeStateNodeStore.getRoot()Returns the latest state of the tree.ProxyNodeStore.getRoot()@NotNull NodeStateNodeStore.merge(@NotNull NodeBuilder builder, @NotNull CommitHook commitHook, @NotNull CommitInfo info) @NotNull NodeStateNodeStoreBranch.merge(@NotNull CommitHook hook, @NotNull CommitInfo info) Merges the changes in this branch to the main content tree.ProxyNodeStore.merge(NodeBuilder builder, CommitHook commitHook, CommitInfo info) @NotNull NodeStateNodeStore.rebase(@NotNull NodeBuilder builder) ProxyNodeStore.rebase(NodeBuilder builder) NodeStore.reset(@NotNull NodeBuilder builder) Reset the passedbuilderby throwing away all its changes and setting its base state to the current root state.ProxyNodeStore.reset(NodeBuilder builder) @Nullable NodeStateRetrieves the root node from a previously created repository checkpoint.Methods in org.apache.jackrabbit.oak.spi.state with parameters of type NodeStateModifier and TypeMethodDescriptionprotected abstract voidAbstractRebaseDiff.addExistingNode(NodeBuilder builder, String name, NodeState before, NodeState after) Called when the nodeafterwas added on the branch but the node exists already in the trunk.protected voidConflictAnnotatingRebaseDiff.addExistingNode(NodeBuilder builder, String name, NodeState before, NodeState after) voidprotected abstract voidAbstractRebaseDiff.changeDeletedNode(NodeBuilder builder, String name, NodeState after, NodeState base) Called when the nodeafterwas changed on the branch but was deleted already in the trunk.protected voidConflictAnnotatingRebaseDiff.changeDeletedNode(NodeBuilder builder, String name, NodeState after, NodeState base) booleanAbstractRebaseDiff.childNodeAdded(String name, NodeState after) booleanApplyDiff.childNodeAdded(String name, NodeState after) booleanDefaultNodeStateDiff.childNodeAdded(String name, NodeState after) booleanEqualsDiff.childNodeAdded(String name, NodeState after) MoveDetector.childNodeAdded(String name, NodeState after) @Nullable MoveValidatorMoveValidator.childNodeAdded(String name, NodeState after) booleanNodeStateDiff.childNodeAdded(String name, NodeState after) Called for all added child nodes.booleanAbstractRebaseDiff.childNodeChanged(String name, NodeState before, NodeState after) booleanApplyDiff.childNodeChanged(String name, NodeState before, NodeState after) booleanDefaultNodeStateDiff.childNodeChanged(String name, NodeState before, NodeState after) booleanEqualsDiff.childNodeChanged(String name, NodeState before, NodeState after) MoveDetector.childNodeChanged(String name, NodeState before, NodeState after) @Nullable MoveValidatorMoveValidator.childNodeChanged(String name, NodeState before, NodeState after) booleanNodeStateDiff.childNodeChanged(String name, NodeState before, NodeState after) Called for all child nodes that may contain changes between the before and after states.booleanAbstractRebaseDiff.childNodeDeleted(String name, NodeState before) booleanApplyDiff.childNodeDeleted(String name, NodeState before) booleanDefaultNodeStateDiff.childNodeDeleted(String name, NodeState before) booleanEqualsDiff.childNodeDeleted(String name, NodeState before) MoveDetector.childNodeDeleted(String name, NodeState before) @Nullable MoveValidatorMoveValidator.childNodeDeleted(String name, NodeState before) booleanNodeStateDiff.childNodeDeleted(String name, NodeState before) Called for all deleted child nodes.booleanAbstractNodeState.compareAgainstBaseState(NodeState base, NodeStateDiff diff) Generic default comparison algorithm that simply walks through the property and child node lists of the given base state and compares the entries one by one with corresponding ones (if any) in this state.static booleanAbstractNodeState.compareAgainstBaseState(NodeState state, NodeState base, NodeStateDiff diff) Generic default comparison algorithm that simply walks through the property and child node lists of the given base state and compares the entries one by one with corresponding ones (if any) in this state.booleanNodeState.compareAgainstBaseState(NodeState base, NodeStateDiff diff) Compares this node state against the given base state.static booleanAbstractNodeState.comparePropertiesAgainstBaseState(NodeState state, NodeState base, NodeStateDiff diff) Compares the properties ofbasestate withthisstate.protected abstract voidAbstractRebaseDiff.deleteChangedNode(NodeBuilder builder, String name, NodeState before) Called when the nodebeforewas deleted in the branch but was already changed in the trunk.protected voidConflictAnnotatingRebaseDiff.deleteChangedNode(NodeBuilder builder, String name, NodeState before) protected abstract voidAbstractRebaseDiff.deleteDeletedNode(NodeBuilder builder, String name, NodeState before) Called when the nodebeforewas deleted in the branch but was already deleted in the trunk.protected voidConflictAnnotatingRebaseDiff.deleteDeletedNode(NodeBuilder builder, String name, NodeState before) voidstatic booleanstatic booleanDiffs the given node states and returnstrueif there are no differences.static booleanAbstractNodeState.getBoolean(NodeState state, String name) static longstatic Stringstatic @NotNull NodeStateGet a possibly non existing child node of a node.static @Nullable StringNodeStateUtils.getPrimaryTypeName(NodeState nodeState) static StringAbstractNodeState.getStrings(NodeState state, String name) voidstatic booleanDiffs the given node states and returnstrueif there are differences within the properties or direct child nodes.voidCalled when a moved node has been detected.voidPrefetchNodeStore.prefetch(Collection<String> paths, NodeState rootState) Make an attempt to prefetch node states for the given paths and hold them in a cache.@NotNull NodeBuilderNodeBuilder.setChildNode(@NotNull String name, @NotNull NodeState nodeState) Adds or replaces a subtree.@NotNull NodeBuilderReadOnlyBuilder.setChildNode(@NotNull String name, @NotNull NodeState nodeState) voidUpdates the state of the content tree of this private branch.static Stringstatic StringProvides a string representation of the given node stateConstructors in org.apache.jackrabbit.oak.spi.state with parameters of type NodeState