Uses of Interface
org.apache.jackrabbit.oak.spi.state.NodeState
Packages that use NodeState
Package
Description
Composition support
Internal utilities and implementation of a memory-based store.
This package contains oak query index related classes.
-
Uses of NodeState in org.apache.jackrabbit.oak.composite
Methods in org.apache.jackrabbit.oak.composite that return NodeStateModifier and TypeMethodDescriptionCompositeNodeStore.getRoot()
CompositeNodeStore.merge
(NodeBuilder builder, CommitHook commitHook, CommitInfo info) CompositeNodeStore.rebase
(NodeBuilder builder) CompositeNodeStore.reset
(NodeBuilder builder) Methods in org.apache.jackrabbit.oak.composite with parameters of type NodeStateModifier and TypeMethodDescriptionCrossMountReferenceValidator.childNodeAdded
(String name, NodeState after) boolean
ModifiedPathDiff.childNodeAdded
(String name, NodeState after) CrossMountReferenceValidator.childNodeChanged
(String name, NodeState before, NodeState after) boolean
ModifiedPathDiff.childNodeChanged
(String name, NodeState before, NodeState after) boolean
ModifiedPathDiff.childNodeDeleted
(String name, NodeState before) void
ModifiedPathDiff.getModifiedPaths
(NodeState before, NodeState after) protected Validator
CrossMountReferenceValidatorProvider.getRootValidator
(NodeState before, NodeState after, CommitInfo info) @NotNull Validator
PrivateStoreValidatorProvider.getRootValidator
(NodeState before, NodeState after, CommitInfo info) void
void
CompositeNodeStore.prefetch
(Collection<String> paths, NodeState rootState) Constructors in org.apache.jackrabbit.oak.composite with parameters of type NodeStateModifierConstructorDescriptionCrossMountReferenceValidator
(NodeState root, MountInfoProvider mip, boolean failOnDetection) -
Uses of NodeState in org.apache.jackrabbit.oak.composite.impl
Methods in org.apache.jackrabbit.oak.composite.impl with parameters of type NodeStateModifier and TypeMethodDescriptionfinal void
NonDefaultMountWriteReportingObserver.contentChanged
(NodeState root, CommitInfo info) -
Uses of NodeState in org.apache.jackrabbit.oak.console
Methods in org.apache.jackrabbit.oak.console that return NodeStateModifier and TypeMethodDescriptionConsoleSession.getRoot()
Returns the currently set root node.@NotNull NodeState
ConsoleSession.getWorkingNode()
The node state for the current working path. -
Uses of NodeState in org.apache.jackrabbit.oak.core
Constructors in org.apache.jackrabbit.oak.core with parameters of type NodeState -
Uses of NodeState in org.apache.jackrabbit.oak.explorer
Methods in org.apache.jackrabbit.oak.explorer that return NodeStateModifier and TypeMethodDescriptionAbstractSegmentTarExplorerBackend.getHead()
AbstractSegmentTarExplorerBackend.readNodeState
(String recordId) Methods in org.apache.jackrabbit.oak.explorer with parameters of type NodeStateModifier and TypeMethodDescriptionAbstractSegmentTarExplorerBackend.getRecordId
(NodeState state) AbstractSegmentTarExplorerBackend.getSegmentId
(NodeState state) AbstractSegmentTarExplorerBackend.getTemplateFile
(NodeState state) AbstractSegmentTarExplorerBackend.getTemplateRecordId
(NodeState state) AbstractSegmentTarExplorerBackend.getTemplateSegmentId
(NodeState state) boolean
AbstractSegmentTarExplorerBackend.isPersisted
(NodeState state) -
Uses of NodeState in org.apache.jackrabbit.oak.exporter
Constructors in org.apache.jackrabbit.oak.exporter with parameters of type NodeState -
Uses of NodeState in org.apache.jackrabbit.oak.index
Methods in org.apache.jackrabbit.oak.index that return NodeStateMethods in org.apache.jackrabbit.oak.index with parameters of type NodeStateModifier and TypeMethodDescription@Nullable Editor
SegmentPropertyIndexEditorProvider.getIndexEditor
(@NotNull String type, @NotNull NodeBuilder definition, @NotNull NodeState root, @NotNull IndexUpdateCallback callback) -
Uses of NodeState in org.apache.jackrabbit.oak.index.indexer.document
Methods in org.apache.jackrabbit.oak.index.indexer.document that return NodeStateMethods in org.apache.jackrabbit.oak.index.indexer.document with parameters of type NodeStateModifier and TypeMethodDescriptionLuceneIndexerProvider.getIndexer
(@NotNull String type, @NotNull String indexPath, @NotNull NodeBuilder definition, @NotNull NodeState root, org.apache.jackrabbit.oak.plugins.index.progress.IndexingProgressReporter progressReporter) @Nullable NodeStateIndexer
NodeStateIndexerProvider.getIndexer
(@NotNull String type, @NotNull String indexPath, @NotNull NodeBuilder definition, @NotNull NodeState root, org.apache.jackrabbit.oak.plugins.index.progress.IndexingProgressReporter progressReporter) Constructors in org.apache.jackrabbit.oak.index.indexer.document with parameters of type NodeStateModifierConstructorDescriptionNodeStateEntry
(NodeState nodeState, String path, long memUsage, long lastModified, String id) NodeStateEntryBuilder
(NodeState nodeState, String path) -
Uses of NodeState in org.apache.jackrabbit.oak.index.indexer.document.flatfile
Methods in org.apache.jackrabbit.oak.index.indexer.document.flatfile with parameters of type NodeStateModifier and TypeMethodDescriptionstatic void
SimpleFlatFileUtil.createFlatFileFor
(NodeState ns, File f) static void
SimpleFlatFileUtil.createFlatFileFor
(NodeState ns, Writer writer) -
Uses of NodeState in org.apache.jackrabbit.oak.index.indexer.document.incrementalstore
Methods in org.apache.jackrabbit.oak.index.indexer.document.incrementalstore with parameters of type NodeStateModifier and TypeMethodDescription@Nullable Editor
IncrementalFlatFileStoreEditor.childNodeAdded
(String name, NodeState after) @Nullable Editor
IncrementalFlatFileStoreEditor.childNodeChanged
(String name, NodeState before, NodeState after) @Nullable Editor
IncrementalFlatFileStoreEditor.childNodeDeleted
(String name, NodeState before) void
void
-
Uses of NodeState in org.apache.jackrabbit.oak.index.indexer.document.tree
Classes in org.apache.jackrabbit.oak.index.indexer.document.tree that implement NodeStateModifier and TypeClassDescriptionclass
A node state of an Oak node that is stored in a tree store.Methods in org.apache.jackrabbit.oak.index.indexer.document.tree that return NodeStateModifier and TypeMethodDescription@NotNull NodeState
TreeStoreNodeState.getChildNode
(@NotNull String name) Methods in org.apache.jackrabbit.oak.index.indexer.document.tree with parameters of type NodeStateModifier and TypeMethodDescriptionboolean
TreeStoreNodeState.compareAgainstBaseState
(NodeState base, NodeStateDiff diff) Constructors in org.apache.jackrabbit.oak.index.indexer.document.tree with parameters of type NodeStateModifierConstructorDescriptionTreeStoreNodeState
(NodeState delegate, String path, TreeStore treeStore, long estimatedMemory) -
Uses of NodeState in org.apache.jackrabbit.oak.indexversion
Methods in org.apache.jackrabbit.oak.indexversion with parameters of type NodeStateModifier and TypeMethodDescriptionprotected abstract boolean
IndexVersionOperation.checkIfDisabledIndexCanBeMarkedForDeletion
(NodeState indexNode) protected boolean
LuceneIndexVersionOperation.checkIfDisabledIndexCanBeMarkedForDeletion
(NodeState indexNode) IndexVersionOperation.generateIndexVersionOperationList
(NodeState rootNode, String parentPath, List<IndexName> indexNameObjectList, long purgeThresholdMillis) Generate list of index version operation over a list of indexes have same index base.IndexVersionOperation.generateIndexVersionOperationList
(NodeState rootNode, String parentPath, List<IndexName> indexNameObjectList, long purgeThresholdMillis, boolean shouldPurgeBaseIndex) Generate list of index version operation over a list of indexes have same index base.protected abstract @Nullable IndexName
IndexVersionOperation.getActiveIndex
(List<IndexName> reverseSortedIndexNameList, String parentPath, NodeState rootNode) protected IndexName
LuceneIndexVersionOperation.getActiveIndex
(List<IndexName> reverseSortedIndexNameList, String parentPath, NodeState rootNode) protected static boolean
IndexVersionOperation.isHiddenOakMountExists
(NodeState indexNode) -
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
(JsopReader reader) Methods in org.apache.jackrabbit.oak.json with parameters of type NodeStateModifier and TypeMethodDescriptionboolean
JsopDiff.childNodeAdded
(String name, NodeState after) boolean
JsopDiff.childNodeChanged
(String name, NodeState before, NodeState after) boolean
JsopDiff.childNodeDeleted
(String name, NodeState before) JsonUtils.convertNodeStateToMap
(NodeState nodeState, int maxDepth, boolean shouldSerializeHiddenNodesOrProperties) Convert a NodeState to a Map representationstatic String
JsopDiff.diffToJsop
(NodeState before, NodeState after) Create the JSOP diff betweenbefore
andafter
for debugging purposes.static String
JsonUtils.nodeStateToJson
(NodeState nodeState, int maxDepth) Converts a NodeState to JSON string with specified depthvoid
void
-
Uses of NodeState in org.apache.jackrabbit.oak.namepath.impl
Constructors in org.apache.jackrabbit.oak.namepath.impl with parameters of type NodeState -
Uses of NodeState in org.apache.jackrabbit.oak.nodestate
Methods in org.apache.jackrabbit.oak.nodestate with parameters of type NodeStateModifier and TypeMethodDescriptionstatic String
NodeStateHelper.nodeStateToString
(NodeState state) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.atomic
Methods in org.apache.jackrabbit.oak.plugins.atomic with parameters of type NodeStateModifier and TypeMethodDescriptionAtomicCounterEditor.childNodeAdded
(String name, NodeState after) AtomicCounterEditor.childNodeChanged
(String name, NodeState before, NodeState after) AtomicCounterEditorProvider.getRootEditor
(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) void
-
Uses of NodeState in org.apache.jackrabbit.oak.plugins.blob.migration
Methods in org.apache.jackrabbit.oak.plugins.blob.migration with parameters of type NodeStateConstructors in org.apache.jackrabbit.oak.plugins.blob.migration with parameters of type NodeState -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.commit
Methods in org.apache.jackrabbit.oak.plugins.commit that return NodeStateModifier and TypeMethodDescription@NotNull NodeState
ConflictHook.processCommit
(NodeState before, NodeState after, CommitInfo info) Methods in org.apache.jackrabbit.oak.plugins.commit with parameters of type NodeStateModifier and TypeMethodDescription@NotNull ThreeWayConflictHandler.Resolution
AnnotatingConflictHandler.addExistingNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState ours, @NotNull NodeState theirs) ChildOrderConflictHandler.addExistingNode
(NodeBuilder parent, String name, NodeState ours, NodeState theirs) DefaultConflictHandler.addExistingNode
(NodeBuilder parent, String name, NodeState ours, NodeState theirs) Deprecated.@NotNull ThreeWayConflictHandler.Resolution
DefaultThreeWayConflictHandler.addExistingNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState ours, @NotNull NodeState theirs) @NotNull ThreeWayConflictHandler.Resolution
AnnotatingConflictHandler.changeDeletedNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState ours, @NotNull NodeState base) ChildOrderConflictHandler.changeDeletedNode
(NodeBuilder parent, String name, NodeState ours) DefaultConflictHandler.changeDeletedNode
(NodeBuilder parent, String name, NodeState ours) Deprecated.@NotNull ThreeWayConflictHandler.Resolution
DefaultThreeWayConflictHandler.changeDeletedNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState ours, @NotNull NodeState base) ConflictValidator.childNodeAdded
(String name, NodeState after) boolean
MergingNodeStateDiff.childNodeAdded
(String name, NodeState after) ConflictValidator.childNodeChanged
(String name, NodeState before, NodeState after) boolean
MergingNodeStateDiff.childNodeChanged
(String name, NodeState before, NodeState after) ConflictValidator.childNodeDeleted
(String name, NodeState before) @NotNull ThreeWayConflictHandler.Resolution
AnnotatingConflictHandler.deleteChangedNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState theirs, @NotNull NodeState base) ChildOrderConflictHandler.deleteChangedNode
(NodeBuilder parent, String name, NodeState theirs) DefaultConflictHandler.deleteChangedNode
(NodeBuilder parent, String name, NodeState theirs) Deprecated.@NotNull ThreeWayConflictHandler.Resolution
DefaultThreeWayConflictHandler.deleteChangedNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState theirs, @NotNull NodeState base) @NotNull ThreeWayConflictHandler.Resolution
AnnotatingConflictHandler.deleteDeletedNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState base) @NotNull ThreeWayConflictHandler.Resolution
DefaultThreeWayConflictHandler.deleteDeletedNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState base) void
ConflictValidatorProvider.getRootValidator
(NodeState before, NodeState after, CommitInfo info) void
@NotNull NodeState
ConflictHook.processCommit
(NodeState before, NodeState after, CommitInfo info) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.cow
Methods in org.apache.jackrabbit.oak.plugins.cow that return NodeStateModifier and TypeMethodDescription@NotNull NodeState
BranchNodeStore.getRoot()
@NotNull NodeState
COWNodeStore.getRoot()
@NotNull NodeState
BranchNodeStore.merge
(@NotNull NodeBuilder builder, @NotNull CommitHook commitHook, @NotNull CommitInfo info) @NotNull NodeState
COWNodeStore.merge
(@NotNull NodeBuilder builder, @NotNull CommitHook commitHook, @NotNull CommitInfo info) @NotNull NodeState
BranchNodeStore.rebase
(@NotNull NodeBuilder builder) @NotNull NodeState
COWNodeStore.rebase
(@NotNull NodeBuilder builder) BranchNodeStore.reset
(@NotNull NodeBuilder builder) COWNodeStore.reset
(@NotNull NodeBuilder builder) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.document
Classes in org.apache.jackrabbit.oak.plugins.document that implement NodeStateModifier and TypeClassDescriptionclass
class
ANodeState
implementation for theDocumentNodeStore
.Methods in org.apache.jackrabbit.oak.plugins.document that return NodeStateModifier and TypeMethodDescription@NotNull NodeState
DocumentNodeState.getChildNode
(@NotNull String name) @NotNull NodeState
DocumentNodeStore.merge
(@NotNull NodeBuilder builder, @NotNull CommitHook commitHook, @NotNull CommitInfo info) @NotNull NodeState
DocumentNodeStore.rebase
(@NotNull NodeBuilder builder) DocumentNodeStore.reset
(@NotNull NodeBuilder builder) @Nullable NodeState
Methods in org.apache.jackrabbit.oak.plugins.document with parameters of type NodeStateModifier and TypeMethodDescriptionboolean
AbstractDocumentNodeState.compareAgainstBaseState
(NodeState base, NodeStateDiff diff) void
DocumentDiscoveryLiteService.contentChanged
(@NotNull NodeState root, @NotNull CommitInfo info) Additionally the DocumentDiscoveryLiteService must be notified when the background-read has finished - as it could be waiting for a crashed node's recovery to finish - which it can only do by checking the lastKnownRevision of the crashed instance - and that check is best done after the background read is just finished (it could optionally do that just purely time based as well, but going via a listener is more timely, that's why this approach has been chosen).void
DocumentNodeStore.prefetch
(Collection<String> paths, NodeState rootState) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.document.bundlor
Methods in org.apache.jackrabbit.oak.plugins.document.bundlor that return NodeStateModifier and TypeMethodDescriptionBundledTypesRegistry.BundledTypesRegistryBuilder.build()
BundledTypesRegistry.BundledTypesRegistryBuilder.TypeBuilder.build()
BundlingHandler.getNodeState()
Methods in org.apache.jackrabbit.oak.plugins.document.bundlor with parameters of type NodeStateModifier and TypeMethodDescriptionBundlingHandler.childAdded
(String name, NodeState state) BundlingHandler.childChanged
(String name, NodeState before, NodeState after) BundlingHandler.childDeleted
(String name, NodeState state) void
BundlingConfigHandler.contentChanged
(@NotNull NodeState root, @NotNull CommitInfo info) static BundledTypesRegistry
static DocumentBundlor
@Nullable DocumentBundlor
BundledTypesRegistry.getBundlor
(NodeState state) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.document.check
Fields in org.apache.jackrabbit.oak.plugins.document.check declared as NodeStateMethods in org.apache.jackrabbit.oak.plugins.document.check that return NodeStateModifier and TypeMethodDescriptionprotected final @Nullable NodeState
AsyncNodeStateProcessor.getNodeByUUID
(@NotNull String uuid, @NotNull AtomicReference<String> resolvedPath) Utility method that resolves heuuid
into aNodeState
with the help of the UUID index.Methods in org.apache.jackrabbit.oak.plugins.document.check with parameters of type NodeStateModifier and TypeMethodDescriptionprotected abstract void
AsyncNodeStateProcessor.runTask
(@NotNull Path path, @Nullable NodeState state, @NotNull Consumer<Result> resultConsumer) Responsibility of the subclass to implement the processor logic.protected void
NodeCounter.runTask
(@NotNull Path path, @Nullable NodeState state, @NotNull Consumer<Result> resultConsumer) protected void
ReferenceCheck.runTask
(@NotNull Path path, @Nullable NodeState state, @NotNull Consumer<Result> resultConsumer) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.document.secondary
Classes in org.apache.jackrabbit.oak.plugins.document.secondary that implement NodeStateModifier and TypeClassDescriptionclass
NodeState wrapper which wraps another NodeState (mostly SegmentNodeState) so as to expose it as anAbstractDocumentNodeState
by extracting the meta properties which are stored as hidden propertiesMethods in org.apache.jackrabbit.oak.plugins.document.secondary that return NodeStateModifier and TypeMethodDescription@NotNull NodeState
DelegatingDocumentNodeState.getChildNode
(@NotNull String name) static NodeState
DelegatingDocumentNodeState.wrapIfPossible
(NodeState delegate, NodeStateDiffer differ) Wraps a given root NodeState as aDelegatingDocumentNodeState
if it has required meta properties otherwise just returns the passed NodeStateMethods in org.apache.jackrabbit.oak.plugins.document.secondary with parameters of type NodeStateModifier and TypeMethodDescriptionvoid
SecondaryStoreObserver.contentChanged
(@NotNull NodeState root, @NotNull CommitInfo info) static boolean
DelegatingDocumentNodeState.hasMetaProps
(NodeState delegate) static AbstractDocumentNodeState
DelegatingDocumentNodeState.wrap
(NodeState delegate, NodeStateDiffer differ) static NodeState
DelegatingDocumentNodeState.wrapIfPossible
(NodeState delegate, NodeStateDiffer differ) Wraps a given root NodeState as aDelegatingDocumentNodeState
if it has required meta properties otherwise just returns the passed NodeState -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.document.util
Methods in org.apache.jackrabbit.oak.plugins.document.util with parameters of type NodeStateModifier and TypeMethodDescriptionboolean
CountingDiff.childNodeAdded
(String name, NodeState after) boolean
ReverseNodeStateDiff.childNodeAdded
(String name, NodeState after) boolean
CountingDiff.childNodeChanged
(String name, NodeState before, NodeState after) boolean
ReverseNodeStateDiff.childNodeChanged
(String name, NodeState before, NodeState after) boolean
CountingDiff.childNodeDeleted
(String name, NodeState before) boolean
ReverseNodeStateDiff.childNodeDeleted
(String name, NodeState before) static int
CountingDiff.countChanges
(NodeState before, NodeState after) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.identifier
Methods in org.apache.jackrabbit.oak.plugins.identifier with parameters of type NodeStateModifier and TypeMethodDescriptionIdentifierTracker.getChildTracker
(String name, NodeState state) Constructors in org.apache.jackrabbit.oak.plugins.identifier with parameters of type NodeState -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.index
Methods in org.apache.jackrabbit.oak.plugins.index with parameters of type NodeStateModifier and TypeMethodDescription@NotNull Editor
IndexUpdate.childNodeAdded
(String name, NodeState after) @NotNull Editor
IndexUpdate.childNodeChanged
(String name, NodeState before, NodeState after) @Nullable Editor
IndexUpdate.childNodeDeleted
(String name, NodeState before) void
static Collection<String>
IndexName.filterReplacedIndexes
(Collection<String> indexPaths, NodeState rootState, boolean checkIsActive) Filter out index that are replaced by another index with the same base name but newer version.static @Nullable String
IndexUtils.getAsyncLaneName
(NodeState idxState, String indexPath) static @Nullable String
IndexUtils.getAsyncLaneName
(NodeState idxState, String indexPath, PropertyState async) AsyncIndexInfoService.getAsyncLanes
(NodeState root) Returns all the async indexing lanes which are active in the setup based on given root NodeStateAsyncIndexInfoServiceImpl.getAsyncLanes
(NodeState root) CompositeIndexEditorProvider.getIndexEditor
(@NotNull String type, @NotNull NodeBuilder builder, @NotNull NodeState root, @NotNull IndexUpdateCallback callback) @Nullable Editor
IndexEditorProvider.getIndexEditor
(@NotNull String type, @NotNull NodeBuilder definition, @NotNull NodeState root, @NotNull IndexUpdateCallback callback) Each provider knows how to produce a certain type of index.WhiteboardIndexEditorProvider.getIndexEditor
(@NotNull String type, @NotNull NodeBuilder builder, @NotNull NodeState root, @NotNull IndexUpdateCallback callback) AsyncIndexInfoService.getIndexedUptoPerLane
(NodeState root) Returns the lastIndexUpto time in millis for each indexing lane for given root stateAsyncIndexInfoServiceImpl.getIndexedUptoPerLane
(NodeState root) @Nullable AsyncIndexInfo
Returns the info for async indexer with given name and based on given root NodeState@Nullable Editor
IndexUpdateProvider.getRootEditor
(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) default boolean
AsyncIndexInfoService.hasIndexerUpdatedForAnyLane
(NodeState before, NodeState after) Determines if any index lane has completed any indexing cycle between given two repository statesstatic boolean
IndexName.isIndexActive
(String indexPath, NodeState rootState) static boolean
IndexUtils.isIndexNodeType
(NodeState state) static boolean
IndexUtils.isIndexNodeType
(NodeState state, String typeIn) void
protected boolean
AsyncIndexUpdate.updateIndex
(NodeState before, String beforeCheckpoint, NodeState after, String afterCheckpoint, String afterTime, AsyncIndexUpdate.AsyncUpdateCallback callback, AtomicReference<String> checkpointToReleaseRef) Constructors in org.apache.jackrabbit.oak.plugins.index with parameters of type NodeStateModifierConstructorDescriptionIndexUpdate
(IndexEditorProvider provider, String async, NodeState root, NodeBuilder builder, IndexUpdateCallback updateCallback) IndexUpdate
(IndexEditorProvider provider, String async, NodeState root, NodeBuilder builder, IndexUpdateCallback updateCallback, NodeTraversalCallback traversalCallback, CommitInfo commitInfo, CorruptIndexHandler corruptIndexHandler) IndexUpdate
(IndexEditorProvider provider, String async, NodeState root, NodeBuilder builder, IndexUpdateCallback updateCallback, CommitInfo commitInfo) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.itemsave
Methods in org.apache.jackrabbit.oak.plugins.itemsave with parameters of type NodeStateModifier and TypeMethodDescriptionprotected @Nullable Validator
ItemSaveValidatorProvider.getRootValidator
(NodeState before, NodeState after, CommitInfo info) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.memory
Classes in org.apache.jackrabbit.oak.plugins.memory that implement NodeStateModifier and TypeClassDescriptionfinal class
Singleton instances of empty and non-existent node states, i.e.class
Immutable snapshot of a mutable node state.Fields in org.apache.jackrabbit.oak.plugins.memory declared as NodeStateModifier and TypeFieldDescriptionstatic final NodeState
EmptyNodeState.EMPTY_NODE
static final NodeState
EmptyNodeState.MISSING_NODE
Methods 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 NodeState
MemoryNodeBuilder.getBaseState()
@NotNull NodeState
ModifiedNodeState.getBaseState()
@NotNull NodeState
EmptyNodeState.getChildNode
(@NotNull String name) @NotNull NodeState
ModifiedNodeState.getChildNode
(@NotNull String name) MemoryChildNodeEntry.getNodeState()
@NotNull NodeState
MemoryNodeBuilder.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 usingConflictAnnotatingRebaseDiff
for 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 NodeState
static NodeState
"Squeezes"ModifiedNodeState
instances into equivalentMemoryNodeState
s.Methods in org.apache.jackrabbit.oak.plugins.memory with parameters of type NodeStateModifier and TypeMethodDescriptionboolean
EmptyNodeState.compareAgainstBaseState
(NodeState base, NodeStateDiff diff) boolean
ModifiedNodeState.compareAgainstBaseState
(NodeState base, NodeStateDiff diff) Since we keep track of an explicit base node state for aModifiedNodeState
instance, 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 boolean
EmptyNodeState.compareAgainstEmptyState
(NodeState state, NodeStateDiff diff) static boolean
EmptyNodeState.isEmptyState
(NodeState state) void
Throws away all changes in this builder and resets the base to the given node state.protected void
Replaces the current state of this builder with the given node state.@NotNull NodeBuilder
MemoryNodeBuilder.setChildNode
(@NotNull String name, @NotNull NodeState state) static NodeState
"Squeezes"ModifiedNodeState
instances into equivalentMemoryNodeState
s.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 passedbase
state.MemoryNodeStore
(NodeState state) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.migration
Classes in org.apache.jackrabbit.oak.plugins.migration that implement NodeStateModifier and TypeClassDescriptionclass
class
NodeState implementation that decorates another node-state instance in order to hide subtrees or partial subtrees from the consumer of the API.Fields in org.apache.jackrabbit.oak.plugins.migration declared as NodeStateMethods in org.apache.jackrabbit.oak.plugins.migration that return NodeStateModifier and TypeMethodDescriptionprotected abstract @NotNull NodeState
AbstractDecoratedNodeState.decorateChild
(@NotNull String name, @NotNull NodeState delegateChild) protected @NotNull NodeState
FilteringNodeState.decorateChild
(@NotNull String name, @NotNull NodeState child) @NotNull NodeState
AbstractDecoratedNodeState.getChildNode
(@NotNull String name) AbstractDecoratedNodeState.getDelegate()
protected NodeState
DescendantsIterator.getNext()
static @NotNull NodeState
FilteringNodeState.wrap
(@NotNull String path, @NotNull NodeState delegate, @Nullable Set<String> includePaths, @Nullable Set<String> excludePaths, @Nullable Set<String> fragmentPaths, @Nullable Set<String> excludedFragments, boolean referenceableFrozenNodes) Factory method that conditionally decorates the given node-state iff the node-state is (a) hidden itself or (b) has hidden descendants.Methods in org.apache.jackrabbit.oak.plugins.migration with parameters of type NodeStateModifier and TypeMethodDescriptionboolean
AbstractDecoratedNodeState.compareAgainstBaseState
(NodeState base, NodeStateDiff diff) boolean
NodeStateCopier.Builder.copy
(@NotNull NodeState sourceRoot, @NotNull NodeBuilder targetRoot) Creates a NodeStateCopier to copy thesourceRoot
NodeState to thetargetRoot
NodeBuilder, using any include, exclude, merge paths and consumer set on this NodeStateCopier.Builder.static boolean
NodeStateCopier.copyProperties
(NodeState source, NodeBuilder target) Copies all changed properties from the source NodeState to the target NodeBuilder instance.static boolean
NodeStateCopier.copyProperties
(NodeState source, NodeBuilder target, boolean preserveOnTarget, String path) Copies all changed properties from the source NodeState to the target NodeBuilder instance.protected abstract @NotNull NodeState
AbstractDecoratedNodeState.decorateChild
(@NotNull String name, @NotNull NodeState delegateChild) protected @NotNull NodeState
FilteringNodeState.decorateChild
(@NotNull String name, @NotNull NodeState child) protected static PropertyState
AbstractDecoratedNodeState.fixChildOrderPropertyState
(NodeState nodeState, PropertyState propertyState) Convenience method to help implementations that hide nodes set the :childOrder (OAK_CHILD_ORDER) property to its correct value.protected boolean
protected boolean
static @NotNull NodeState
FilteringNodeState.wrap
(@NotNull String path, @NotNull NodeState delegate, @Nullable Set<String> includePaths, @Nullable Set<String> excludePaths, @Nullable Set<String> fragmentPaths, @Nullable Set<String> excludedFragments, boolean referenceableFrozenNodes) Factory method that conditionally decorates the given node-state iff the node-state is (a) hidden itself or (b) has hidden descendants.Constructors in org.apache.jackrabbit.oak.plugins.migration with parameters of type NodeStateModifierConstructorDescriptionprotected
AbstractDecoratedNodeState
(@NotNull NodeState delegate, boolean useNativeEquals) DescendantsIterator
(NodeState root, int maxLevel) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.migration.report
Classes in org.apache.jackrabbit.oak.plugins.migration.report that implement NodeStateModifier and TypeClassDescriptionclass
A decoration layer for NodeState instances that intercepts all accesses to NodeStates and PropertyStates (getters) and informs aReporter
via its callbacks that the respective NodeStates or PropertyStates have been accessed.Methods in org.apache.jackrabbit.oak.plugins.migration.report that return NodeStateModifier and TypeMethodDescriptionprotected @NotNull NodeState
ReportingNodeState.decorateChild
(@NotNull String name, @NotNull NodeState delegateChild) static NodeState
Allows wrapping a NodeState as a ReportingNodeState.Methods in org.apache.jackrabbit.oak.plugins.migration.report with parameters of type NodeState -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.migration.version
Methods in org.apache.jackrabbit.oak.plugins.migration.version that return NodeStateModifier and TypeMethodDescriptionstatic NodeState
VersionHistoryUtil.getVersionStorage
(NodeState root) Methods in org.apache.jackrabbit.oak.plugins.migration.version with parameters of type NodeStateModifier and TypeMethodDescriptionVersionableEditor.childNodeAdded
(String name, NodeState after) VersionablePropertiesEditor.childNodeAdded
(String name, NodeState after) VersionableEditor.childNodeChanged
(String name, NodeState before, NodeState after) VersionablePropertiesEditor.childNodeChanged
(String name, NodeState before, NodeState after) VersionableEditor.childNodeDeleted
(String name, NodeState before) static void
VersionCopier.copyVersionStorage
(NodeBuilder targetRoot, NodeState sourceVersionStorage, NodeBuilder targetVersionStorage, VersionCopyConfiguration config) static void
VersionCopier.copyVersionStorage
(NodeBuilder targetRoot, NodeState sourceVersionStorage, NodeBuilder targetVersionStorage, VersionCopyConfiguration config, @NotNull Consumer<String> consumer) VersionableEditor.Provider.getRootEditor
(NodeState before, NodeState after, NodeBuilder rootBuilder, CommitInfo info) VersionablePropertiesEditor.Provider.getRootEditor
(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) VersionHistoryUtil.getVersionableNodes
(NodeState root, NodeState versionStorage, TypePredicate isVersionable, Calendar olderThan) static Calendar
VersionHistoryUtil.getVersionHistoryLastModified
(NodeState versionHistory) static NodeState
VersionHistoryUtil.getVersionStorage
(NodeState root) void
static NodeBuilder
VersionHistoryUtil.removeVersions
(NodeState root, List<String> toRemove) Constructors in org.apache.jackrabbit.oak.plugins.migration.version with parameters of type NodeStateModifierConstructorDescriptionProvider
(NodeState sourceRoot, String workspaceName, VersionCopyConfiguration config) VersionCopier
(NodeBuilder targetRoot, NodeState sourceVersionStorage, NodeBuilder targetVersionStorage) VersionCopier
(NodeBuilder targetRoot, NodeState sourceVersionStorage, NodeBuilder targetVersionStorage, Consumer<String> consumer) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.name
Methods in org.apache.jackrabbit.oak.plugins.name with parameters of type NodeStateModifier and TypeMethodDescriptionNamespaceEditorProvider.getRootEditor
(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) NameValidatorProvider.getRootValidator
(NodeState before, NodeState after, CommitInfo info) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.nodetype
Methods in org.apache.jackrabbit.oak.plugins.nodetype with parameters of type NodeStateModifier and TypeMethodDescriptionTypeEditor.childNodeAdded
(String name, NodeState after) TypeEditor.childNodeChanged
(String name, NodeState before, NodeState after) TypeEditor.childNodeDeleted
(String name, NodeState before) static TypeEditor
TypeEditor.create
(@NotNull TypeEditor.ConstraintViolationCallback callback, Set<String> typesToCheck, @NotNull NodeState types, String primary, Iterable<String> mixins, @NotNull NodeBuilder builder) Creates a new TypeEditor instancevoid
TypeEditorProvider.getRootEditor
(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) static @NotNull TypePredicate
TypePredicate.isOrderable
(@NotNull NodeState root) boolean
Constructors in org.apache.jackrabbit.oak.plugins.nodetype with parameters of type NodeStateModifierConstructorDescriptionTypePredicate
(@NotNull NodeState root, @NotNull Iterable<String> names) Creates a predicate for checking whether a node state is an instance of any of the named node types.TypePredicate
(@NotNull NodeState root, @NotNull String name) Creates a predicate for checking whether a node state is an instance of the named node type.TypePredicate
(@NotNull NodeState root, @NotNull String[] names) Creates a predicate for checking whether a node state is an instance of any of the named node types. -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.observation
Methods in org.apache.jackrabbit.oak.plugins.observation that return NodeStateModifier and TypeMethodDescription@NotNull NodeState
CommitRateLimiter.processCommit
(NodeState before, NodeState after, CommitInfo info) Methods in org.apache.jackrabbit.oak.plugins.observation with parameters of type NodeStateModifier and TypeMethodDescriptionvoid
EventGenerator.addHandler
(NodeState before, NodeState after, EventHandler handler) void
FilteringAwareObserver.contentChanged
(@NotNull NodeState before, @NotNull NodeState after, @NotNull CommitInfo info) Equivalent to the state-full contentChanged() method of the Observer with one important difference being that this variation explicitly passes the before NodeState (thus the observer must in this case not remember the previous state)void
FilteringDispatcher.contentChanged
(@NotNull NodeState root, @NotNull CommitInfo info) final void
FilteringObserver.contentChanged
(@NotNull NodeState root, @NotNull CommitInfo info) void
NodeObserver.contentChanged
(@NotNull NodeState root, @NotNull CommitInfo info) void
void
Called before the given before and after states are compared.void
boolean
Filter.excludes
(@NotNull NodeState root, @NotNull CommitInfo info) Whether or not to exclude a particular content change from being forwarded to downstream observers.DefaultEventHandler.getChildHandler
(String name, NodeState before, NodeState after) @Nullable EventHandler
EventHandler.getChildHandler
(String name, NodeState before, NodeState after) Returns a handler of events within the given child node, ornull
if changes within that child are not to be processed.@Nullable EventHandler
FilteredHandler.getChildHandler
(String name, NodeState before, NodeState after) protected Validator
ChangeCollectorProvider.getRootValidator
(NodeState before, NodeState after, CommitInfo info) void
void
Called after the given before and after states are compared.void
void
void
Notification for an added nodevoid
void
DefaultEventHandler.nodeDeleted
(String name, NodeState before) void
EventHandler.nodeDeleted
(String name, NodeState before) Notification for a deleted nodevoid
FilteredHandler.nodeDeleted
(String name, NodeState before) void
void
Notification for a moved nodevoid
void
DefaultEventHandler.nodeReordered
(String destName, String name, NodeState reordered) void
EventHandler.nodeReordered
(String destName, String name, NodeState reordered) Notification for a reordered nodevoid
FilteredHandler.nodeReordered
(String destName, String name, NodeState reordered) @NotNull NodeState
CommitRateLimiter.processCommit
(NodeState before, NodeState after, CommitInfo info) Constructors in org.apache.jackrabbit.oak.plugins.observation with parameters of type NodeStateModifierConstructorDescriptionEventGenerator
(@NotNull NodeState before, @NotNull NodeState after, @NotNull EventHandler handler) Creates a new generator instance for processing the given changes. -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.observation.filter
Methods in org.apache.jackrabbit.oak.plugins.observation.filter that return NodeStateModifier and TypeMethodDescription@NotNull NodeState
UniversalFilter.getAfterState()
@NotNull NodeState
UniversalFilter.getBeforeState()
@NotNull NodeState
RelativePathSelector.select
(@NotNull UniversalFilter filter, @NotNull String name, @NotNull NodeState before, @NotNull NodeState after) @NotNull NodeState
RelativePathSelector.select
(@NotNull UniversalFilter filter, @Nullable PropertyState before, @Nullable PropertyState after) @NotNull NodeState
UniversalFilter.Selector.select
(@NotNull UniversalFilter filter, @NotNull String name, @NotNull NodeState before, @NotNull NodeState after) Map a node event.@NotNull NodeState
UniversalFilter.Selector.select
(@NotNull UniversalFilter filter, @Nullable PropertyState before, @Nullable PropertyState after) Map a property event.Methods in org.apache.jackrabbit.oak.plugins.observation.filter with parameters of type NodeStateModifier and TypeMethodDescriptionint
EventAggregator.aggregate
(NodeState root, List<ChildNodeEntry> parents, PropertyState propertyState) Aggregates a property changeint
EventAggregator.aggregate
(NodeState root, List<ChildNodeEntry> parents, ChildNodeEntry childNodeState) Aggregates a node change@Nullable EventFilter
Factory for creating a filter instance for the given child node@NotNull EventFilter
FilterBuilder.AddSubtreeTreeCondition.createFilter
(@NotNull NodeState before, @NotNull NodeState after) @NotNull EventFilter
FilterBuilder.Condition.createFilter
(@NotNull NodeState before, @NotNull NodeState after) @NotNull EventFilter
FilterBuilder.DeleteSubtreeTreeCondition.createFilter
(@NotNull NodeState before, @NotNull NodeState after) @NotNull EventFilter
FilterBuilder.MoveCondition.createFilter
(@NotNull NodeState before, @NotNull NodeState after) @NotNull EventFilter
Factory method for creating aFilter
for the passed before and after states.boolean
ACFilter.includeAdd
(String name, NodeState after) boolean
AddSubtreeFilter.includeAdd
(String name, NodeState after) boolean
ConstantFilter.includeAdd
(String name, NodeState after) boolean
DeleteSubtreeFilter.includeAdd
(String name, NodeState after) boolean
EventFilter.includeAdd
(String name, NodeState after) Include an added nodeboolean
EventTypeFilter.includeAdd
(String name, NodeState after) boolean
GlobbingPathFilter.includeAdd
(String name, NodeState after) boolean
MoveFilter.includeAdd
(String name, NodeState after) boolean
UniversalFilter.includeAdd
(String name, NodeState after) boolean
VisibleFilter.includeAdd
(String name, NodeState after) boolean
ACFilter.includeDelete
(String name, NodeState before) boolean
AddSubtreeFilter.includeDelete
(String name, NodeState before) boolean
ConstantFilter.includeDelete
(String name, NodeState before) boolean
DeleteSubtreeFilter.includeDelete
(String name, NodeState before) boolean
EventFilter.includeDelete
(String name, NodeState before) Include a deleted nodeboolean
EventTypeFilter.includeDelete
(String name, NodeState before) boolean
GlobbingPathFilter.includeDelete
(String name, NodeState before) boolean
MoveFilter.includeDelete
(String name, NodeState before) boolean
UniversalFilter.includeDelete
(String name, NodeState before) boolean
VisibleFilter.includeDelete
(String name, NodeState before) boolean
ACFilter.includeMove
(String sourcePath, String name, NodeState moved) boolean
AddSubtreeFilter.includeMove
(String sourcePath, String name, NodeState moved) boolean
ConstantFilter.includeMove
(String sourcePath, String name, NodeState moved) boolean
DeleteSubtreeFilter.includeMove
(String sourcePath, String name, NodeState moved) boolean
EventFilter.includeMove
(String sourcePath, String name, NodeState moved) Include a moved nodeboolean
EventTypeFilter.includeMove
(String sourcePath, String name, NodeState moved) boolean
GlobbingPathFilter.includeMove
(String sourcePath, String name, NodeState moved) boolean
MoveFilter.includeMove
(String sourcePath, String name, NodeState moved) boolean
UniversalFilter.includeMove
(String sourcePath, String name, NodeState moved) boolean
VisibleFilter.includeMove
(String sourcePath, String name, NodeState moved) boolean
ACFilter.includeReorder
(String destName, String name, NodeState reordered) boolean
AddSubtreeFilter.includeReorder
(String destName, String name, NodeState reordered) boolean
ConstantFilter.includeReorder
(String destName, String name, NodeState reordered) boolean
DeleteSubtreeFilter.includeReorder
(String destName, String name, NodeState reordered) boolean
EventFilter.includeReorder
(String destName, String name, NodeState reordered) Include a reordered nodeboolean
EventTypeFilter.includeReorder
(String destName, String name, NodeState reordered) boolean
GlobbingPathFilter.includeReorder
(String destName, String name, NodeState reordered) boolean
MoveFilter.includeReorder
(String destName, String name, NodeState reordered) boolean
UniversalFilter.includeReorder
(String destName, String name, NodeState reordered) boolean
VisibleFilter.includeReorder
(String destName, String name, NodeState reordered) @NotNull NodeState
RelativePathSelector.select
(@NotNull UniversalFilter filter, @NotNull String name, @NotNull NodeState before, @NotNull NodeState after) @NotNull NodeState
UniversalFilter.Selector.select
(@NotNull UniversalFilter filter, @NotNull String name, @NotNull NodeState before, @NotNull NodeState after) Map a node event.boolean
boolean
Method parameters in org.apache.jackrabbit.oak.plugins.observation.filter with type arguments of type NodeStateModifier and TypeMethodDescription@NotNull FilterBuilder.Condition
FilterBuilder.universal
(@NotNull UniversalFilter.Selector selector, @NotNull Predicate<NodeState> predicate) A condition that holds when the predicate matches.Constructors in org.apache.jackrabbit.oak.plugins.observation.filter with parameters of type NodeStateModifierConstructorDescriptionACFilter
(@NotNull NodeState before, @NotNull NodeState after, @NotNull PermissionProvider permissionProvider) Create a newFilter
instance that includes an event when the observing session has sufficient permissions to read the associated item.UniversalFilter
(@NotNull NodeState before, @NotNull NodeState after, @NotNull UniversalFilter.Selector selector, @NotNull Predicate<NodeState> predicate) Create a new instance of an universal filter rooted at the passed trees.Constructor parameters in org.apache.jackrabbit.oak.plugins.observation.filter with type arguments of type NodeStateModifierConstructorDescriptionUniversalFilter
(@NotNull NodeState before, @NotNull NodeState after, @NotNull UniversalFilter.Selector selector, @NotNull Predicate<NodeState> predicate) Create a new instance of an universal filter rooted at the passed trees. -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.tree
Methods in org.apache.jackrabbit.oak.plugins.tree that return NodeStateModifier and TypeMethodDescription@NotNull NodeState
TreeProvider.asNodeState
(@NotNull Tree readOnlyTree) Methods in org.apache.jackrabbit.oak.plugins.tree with parameters of type NodeStateModifier and TypeMethodDescription@NotNull Root
RootProvider.createReadOnlyRoot
(@NotNull NodeState rootState) @NotNull Tree
TreeProvider.createReadOnlyTree
(@NotNull Tree readOnlyParent, @NotNull String childName, @NotNull NodeState childState) @NotNull Tree
TreeProvider.createReadOnlyTree
(@NotNull NodeState rootState) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.tree.factories
Methods in org.apache.jackrabbit.oak.plugins.tree.factories with parameters of type NodeStateModifier and TypeMethodDescriptionstatic @NotNull Root
RootFactory.createReadOnlyRoot
(@NotNull NodeState rootState) Deprecated.static Tree
TreeFactory.createReadOnlyTree
(@NotNull Tree readOnlyParent, @NotNull String childName, @NotNull NodeState childState) Deprecated.static Tree
TreeFactory.createReadOnlyTree
(@NotNull NodeState rootState) Deprecated. -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.tree.impl
Methods in org.apache.jackrabbit.oak.plugins.tree.impl that return NodeStateModifier and TypeMethodDescription@NotNull NodeState
TreeProviderService.asNodeState
(@NotNull Tree readOnlyTree) @NotNull NodeState
AbstractTree.getNodeState()
Methods in org.apache.jackrabbit.oak.plugins.tree.impl with parameters of type NodeStateModifier and TypeMethodDescription@NotNull Root
RootProviderService.createReadOnlyRoot
(@NotNull NodeState rootState) @NotNull Tree
TreeProviderService.createReadOnlyTree
(@NotNull Tree readOnlyParent, @NotNull String childName, @NotNull NodeState childState) @NotNull Tree
TreeProviderService.createReadOnlyTree
(@NotNull NodeState rootState) Constructors in org.apache.jackrabbit.oak.plugins.tree.impl with parameters of type NodeStateModifierConstructorDescriptionImmutableTree
(@NotNull ImmutableTree.ParentProvider parentProvider, @NotNull String name, @NotNull NodeState state) ImmutableTree
(@NotNull ImmutableTree parent, @NotNull String name, @NotNull NodeState state) ImmutableTree
(@NotNull NodeState rootState) -
Uses of NodeState in org.apache.jackrabbit.oak.plugins.version
Methods in org.apache.jackrabbit.oak.plugins.version that return NodeStateModifier and TypeMethodDescription@NotNull NodeState
VersionHook.processCommit
(NodeState before, NodeState after, CommitInfo info) Methods in org.apache.jackrabbit.oak.plugins.version with parameters of type NodeStateModifier and TypeMethodDescriptionstatic boolean
Utils.isFrozenNodeReferenceable
(@NotNull NodeState root) Returnstrue
iff there is ant:frozenNode
definition and the definition has amix:referenceable
supertype.@NotNull NodeState
VersionHook.processCommit
(NodeState before, NodeState after, CommitInfo info) -
Uses of NodeState in org.apache.jackrabbit.oak.query
Methods in org.apache.jackrabbit.oak.query that return NodeStateModifier and TypeMethodDescription@NotNull NodeState
ExecutionContext.getBaseState()
Used to evaluate the query (ie.Constructors in org.apache.jackrabbit.oak.query with parameters of type NodeStateModifierConstructorDescriptionExecutionContext
(NodeState baseState, Root root, QueryEngineSettings settings, QueryIndexProvider indexProvider, PermissionProvider permissionProvider, PrefetchNodeStore store) NodeStateNodeTypeInfoProvider
(NodeState baseState) -
Uses of NodeState in org.apache.jackrabbit.oak.query.ast
Methods in org.apache.jackrabbit.oak.query.ast with parameters of type NodeStateModifier and TypeMethodDescriptionvoid
void
abstract void
Execute the query.JoinImpl.getIndexCostInfo
(NodeState rootState) SelectorImpl.getIndexCostInfo
(NodeState rootState) abstract String
SourceImpl.getIndexCostInfo
(NodeState rootState) Get the index cost as a JSON string.abstract String
Get the query plan.long
JoinImpl.getSize
(NodeState rootState, Result.SizePrecision precision, long max) long
SelectorImpl.getSize
(NodeState rootState, Result.SizePrecision precision, long max) abstract long
SourceImpl.getSize
(NodeState rootState, Result.SizePrecision precision, long max) Get the size if known. -
Uses of NodeState in org.apache.jackrabbit.oak.query.index
Methods in org.apache.jackrabbit.oak.query.index with parameters of type NodeStateModifier and TypeMethodDescriptiondouble
boolean
TraversingIndex.isPotentiallySlow
(Filter filter, NodeState rootState) -
Uses of NodeState in org.apache.jackrabbit.oak.security.authorization.accesscontrol
Methods in org.apache.jackrabbit.oak.security.authorization.accesscontrol with parameters of type NodeStateModifier and TypeMethodDescription@NotNull Validator
AccessControlValidatorProvider.getRootValidator
(NodeState before, NodeState after, CommitInfo info) -
Uses of NodeState in org.apache.jackrabbit.oak.security.authorization.permission
Methods in org.apache.jackrabbit.oak.security.authorization.permission that return NodeStateModifier and TypeMethodDescription@NotNull NodeState
PermissionHook.processCommit
(NodeState before, NodeState after, CommitInfo info) @NotNull NodeState
VersionablePathHook.processCommit
(NodeState before, NodeState after, CommitInfo info) Methods in org.apache.jackrabbit.oak.security.authorization.permission with parameters of type NodeStateModifier and TypeMethodDescriptionMoveAwarePermissionValidator.childNodeAdded
(String name, NodeState after) MoveAwarePermissionValidator.childNodeDeleted
(String name, NodeState before) @NotNull Validator
PermissionStoreValidatorProvider.getRootValidator
(NodeState before, NodeState after, CommitInfo info) @NotNull Validator
PermissionValidatorProvider.getRootValidator
(NodeState before, NodeState after, CommitInfo info) @NotNull NodeState
PermissionHook.processCommit
(NodeState before, NodeState after, CommitInfo info) @NotNull NodeState
VersionablePathHook.processCommit
(NodeState before, NodeState after, CommitInfo info) -
Uses of NodeState in org.apache.jackrabbit.oak.segment
Classes in org.apache.jackrabbit.oak.segment that implement NodeStateMethods in org.apache.jackrabbit.oak.segment that return NodeStateModifier and TypeMethodDescription@NotNull NodeState
SegmentNodeState.getChildNode
(@NotNull String name) Template.getChildNode
(String name, RecordId recordId) @NotNull NodeState
SegmentNodeStore.getRoot()
@NotNull NodeState
SegmentNodeStore.merge
(@NotNull NodeBuilder builder, @NotNull CommitHook commitHook, @NotNull CommitInfo info) @NotNull NodeState
LoggingHook.processCommit
(NodeState before, NodeState after, CommitInfo info) @NotNull NodeState
SegmentNodeStore.rebase
(@NotNull NodeBuilder builder) @NotNull NodeState
SegmentNodeStore.reset
(@NotNull NodeBuilder builder) @Nullable NodeState
Methods in org.apache.jackrabbit.oak.segment with parameters of type NodeStateModifier and TypeMethodDescriptionfinal boolean
CancelableDiff.childNodeAdded
(String name, NodeState after) boolean
LoggingHook.childNodeAdded
(String name, NodeState after) final boolean
CancelableDiff.childNodeChanged
(String name, NodeState before, NodeState after) boolean
LoggingHook.childNodeChanged
(String name, NodeState before, NodeState after) final boolean
CancelableDiff.childNodeDeleted
(String name, NodeState before) boolean
LoggingHook.childNodeDeleted
(String name, NodeState before) @Nullable CompactedNodeState
CheckpointCompactor.compact
(@NotNull NodeState before, @NotNull NodeState after, @NotNull NodeState onto, @NotNull Canceller canceller) @Nullable CompactedNodeState
ClassicCompactor.compact
(@NotNull NodeState before, @NotNull NodeState after, @NotNull NodeState onto, @NotNull Canceller canceller) abstract @Nullable CompactedNodeState
Compactor.compact
(@NotNull NodeState before, @NotNull NodeState after, @NotNull NodeState onto, @NotNull Canceller canceller) compact the differences betweenafter
andbefore
on top ofonto
.@Nullable CompactedNodeState
CheckpointCompactor.compactDown
(@NotNull NodeState before, @NotNull NodeState after, @NotNull Canceller hardCanceller, @NotNull Canceller softCanceller) @Nullable CompactedNodeState
ClassicCompactor.compactDown
(@NotNull NodeState before, @NotNull NodeState after, @NotNull Canceller hardCanceller, @NotNull Canceller softCanceller) final @Nullable CompactedNodeState
Compactor.compactDown
(@NotNull NodeState state, @NotNull Canceller hardCanceller, @NotNull Canceller softCanceller) abstract @Nullable CompactedNodeState
Compactor.compactDown
(@NotNull NodeState before, @NotNull NodeState after, @NotNull Canceller hardCanceller, @NotNull Canceller softCanceller) compact the differences betweenafter
andbefore
on top ofafter
.protected @Nullable CompactedNodeState
CheckpointCompactor.compactDownWithDelegate
(@NotNull NodeState before, @NotNull NodeState after, @NotNull Canceller hardCanceller, @NotNull Canceller softCanceller) Delegate compaction to another, usually simpler, implementation.protected @Nullable CompactedNodeState
ParallelCompactor.compactDownWithDelegate
(@NotNull NodeState before, @NotNull NodeState after, @NotNull Canceller hardCanceller, @NotNull Canceller softCanceller) final @Nullable CompactedNodeState
final @Nullable CompactedNodeState
Compactor.compactUp
(@NotNull NodeState before, @NotNull NodeState after, @NotNull Canceller canceller) compact the differences betweenafter
andbefore
on top ofbefore
.protected @Nullable CompactedNodeState
CheckpointCompactor.compactWithDelegate
(@NotNull NodeState before, @NotNull NodeState after, @NotNull NodeState onto, @NotNull Canceller canceller) protected @Nullable CompactedNodeState
ParallelCompactor.compactWithDelegate
(@NotNull NodeState before, @NotNull NodeState after, @NotNull NodeState onto, @NotNull Canceller canceller) boolean
SegmentNodeState.compareAgainstBaseState
(NodeState base, NodeStateDiff diff) void
static boolean
SegmentNodeState.fastEquals
(NodeState a, NodeState b) Indicates whether twoNodeState
instances are equal to each other.protected @Nullable CompactedNodeState
ClassicCompactor.getPreviouslyCompactedState
(NodeState nodeState) void
@NotNull NodeState
LoggingHook.processCommit
(NodeState before, NodeState after, CommitInfo info) @NotNull RecordId
default @NotNull RecordId
Write a node state.@NotNull RecordId
Write a node state.protected @Nullable CompactedNodeState
ClassicCompactor.writeNodeState
(@NotNull NodeState nodeState, @Nullable Buffer stableIdBytes, boolean complete) -
Uses of NodeState in org.apache.jackrabbit.oak.segment.file
Classes in org.apache.jackrabbit.oak.segment.file that implement NodeStateModifier and TypeClassDescriptionclass
Simple wrapper class forSegmentNodeState
to keep track of fully and partially compacted nodes.Methods in org.apache.jackrabbit.oak.segment.file with parameters of type NodeStateModifier and TypeMethodDescription@Nullable org.apache.jackrabbit.oak.segment.file.CompactedNodeState.FullyCompactedNodeState
CompactionWriter.getPreviouslyCompactedState
(NodeState nodeState) @NotNull org.apache.jackrabbit.oak.segment.file.CompactedNodeState.FullyCompactedNodeState
CompactionWriter.writeFullyCompactedNode
(@NotNull NodeState nodeState, @Nullable Buffer stableId) @Nullable org.apache.jackrabbit.oak.segment.file.CompactedNodeState.PartiallyCompactedNodeState
CompactionWriter.writePartiallyCompactedNode
(@NotNull NodeState nodeState, @Nullable Buffer stableId) -
Uses of NodeState in org.apache.jackrabbit.oak.segment.file.proc
Methods in org.apache.jackrabbit.oak.segment.file.proc that return NodeStateMethods in org.apache.jackrabbit.oak.segment.file.proc that return types with arguments of type NodeState -
Uses of NodeState in org.apache.jackrabbit.oak.segment.file.tooling
Methods in org.apache.jackrabbit.oak.segment.file.tooling that return NodeStateModifier and TypeMethodDescription@Nullable NodeState
RevisionHistory.HistoryElement.getNode()
Node at given revisionMethods in org.apache.jackrabbit.oak.segment.file.tooling with parameters of type NodeStateModifier and TypeMethodDescriptionConsistencyChecker.checkTreeConsistency
(NodeState root, Set<String> corruptedPaths, boolean binaries) Check the consistency of a given subtree and returns the first inconsistent path. -
Uses of NodeState in org.apache.jackrabbit.oak.segment.scheduler
Methods in org.apache.jackrabbit.oak.segment.scheduler that return NodeStateModifier and TypeMethodDescriptionLockBasedScheduler.getHeadNodeState()
Scheduler.getHeadNodeState()
Returns the latest state of the tree.LockBasedScheduler.schedule
(@NotNull Commit commit, Scheduler.SchedulerOption... schedulingOptions) Scheduler.schedule
(@NotNull Commit commit, Scheduler.SchedulerOption... schedulingOptions) Schedule acommit
.Methods in org.apache.jackrabbit.oak.segment.scheduler with parameters of type NodeStateModifier and TypeMethodDescriptionprotected void
LockBasedScheduler.contentChanged
(NodeState root, CommitInfo info) -
Uses of NodeState in org.apache.jackrabbit.oak.segment.tool.iotrace
Methods in org.apache.jackrabbit.oak.segment.tool.iotrace with parameters of type NodeState -
Uses of NodeState in org.apache.jackrabbit.oak.spi.commit
Methods in org.apache.jackrabbit.oak.spi.commit that return NodeStateModifier and TypeMethodDescription@NotNull NodeState
CommitHook.processCommit
(NodeState before, NodeState after, CommitInfo info) Validates and/or modifies the given content change before it gets persisted.@NotNull NodeState
CompositeHook.processCommit
(NodeState before, NodeState after, CommitInfo info) @NotNull NodeState
EditorHook.processCommit
(@NotNull NodeState before, @NotNull NodeState after, @NotNull CommitInfo info) @NotNull NodeState
EmptyHook.processCommit
(NodeState before, NodeState after, CommitInfo info) @NotNull NodeState
ResetCommitAttributeHook.processCommit
(NodeState before, NodeState after, CommitInfo info) Methods in org.apache.jackrabbit.oak.spi.commit with parameters of type NodeStateModifier and TypeMethodDescription@NotNull ThreeWayConflictHandler.Resolution
CompositeConflictHandler.addExistingNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState ours, @NotNull NodeState theirs) @NotNull PartialConflictHandler.Resolution
ConflictHandler.addExistingNode
(NodeBuilder parent, String name, NodeState ours, NodeState theirs) Deprecated.The nodeours
has been added toparent
which conflicts with nodetheirs
which has been added in the persistence store.@Nullable PartialConflictHandler.Resolution
PartialConflictHandler.addExistingNode
(NodeBuilder parent, String name, NodeState ours, NodeState theirs) Deprecated.The nodeours
has been added toparent
which conflicts with nodetheirs
which has been added in the persistence store.@NotNull ThreeWayConflictHandler.Resolution
ThreeWayConflictHandler.addExistingNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState ours, @NotNull NodeState theirs) The nodeours
has been added toparent
which conflicts with nodetheirs
which has been added in the persistence store.@NotNull ThreeWayConflictHandler.Resolution
CompositeConflictHandler.changeDeletedNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState ours, @NotNull NodeState base) @NotNull PartialConflictHandler.Resolution
ConflictHandler.changeDeletedNode
(NodeBuilder parent, String name, NodeState ours) Deprecated.The nodeours
has been changed inparent
while it was removed in the persistence store.@Nullable PartialConflictHandler.Resolution
PartialConflictHandler.changeDeletedNode
(NodeBuilder parent, String name, NodeState ours) Deprecated.The nodeours
has been changed inparent
while it was removed in the persistence store.@NotNull ThreeWayConflictHandler.Resolution
ThreeWayConflictHandler.changeDeletedNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState ours, @NotNull NodeState base) The nodeours
has been changed inparent
while 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 Editor
Editor.childNodeAdded
(String name, NodeState after) Processes an added child node.boolean
EditorDiff.childNodeAdded
(String name, NodeState after) FailingValidator.childNodeAdded
(String name, NodeState after) ProgressNotificationEditor.childNodeAdded
(String name, NodeState after) @Nullable Editor
SubtreeEditor.childNodeAdded
(String name, NodeState after) SubtreeExcludingValidator.childNodeAdded
(String name, NodeState after) SubtreeValidator.childNodeAdded
(String name, NodeState after) @Nullable Validator
Validator.childNodeAdded
(String name, NodeState after) Validate an added node@Nullable Editor
VisibleEditor.childNodeAdded
(String name, NodeState after) @Nullable Validator
VisibleValidator.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 Editor
Editor.childNodeChanged
(String name, NodeState before, NodeState after) Processes a changed child node.boolean
EditorDiff.childNodeChanged
(String name, NodeState before, NodeState after) FailingValidator.childNodeChanged
(String name, NodeState before, NodeState after) ProgressNotificationEditor.childNodeChanged
(String name, NodeState before, NodeState after) @Nullable Editor
SubtreeEditor.childNodeChanged
(String name, NodeState before, NodeState after) SubtreeExcludingValidator.childNodeChanged
(String name, NodeState before, NodeState after) SubtreeValidator.childNodeChanged
(String name, NodeState before, NodeState after) @Nullable Validator
Validator.childNodeChanged
(String name, NodeState before, NodeState after) Validate a changed node@Nullable Editor
VisibleEditor.childNodeChanged
(String name, NodeState before, NodeState after) @Nullable Validator
VisibleValidator.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 Editor
Editor.childNodeDeleted
(String name, NodeState before) Processes a deleted child node.boolean
EditorDiff.childNodeDeleted
(String name, NodeState before) FailingValidator.childNodeDeleted
(String name, NodeState before) ProgressNotificationEditor.childNodeDeleted
(String name, NodeState before) @Nullable Editor
SubtreeEditor.childNodeDeleted
(String name, NodeState before) SubtreeExcludingValidator.childNodeDeleted
(String name, NodeState before) SubtreeValidator.childNodeDeleted
(String name, NodeState before) @Nullable Validator
Validator.childNodeDeleted
(String name, NodeState before) Validate a deleted node@Nullable Editor
VisibleEditor.childNodeDeleted
(String name, NodeState before) @Nullable Validator
VisibleValidator.childNodeDeleted
(String name, NodeState before) void
BackgroundObserver.contentChanged
(@NotNull NodeState root, @NotNull CommitInfo info) void
ChangeDispatcher.contentChanged
(@NotNull NodeState root, @NotNull CommitInfo info) void
CompositeObserver.contentChanged
(@NotNull NodeState root, @NotNull CommitInfo info) final void
DiffObserver.contentChanged
(@NotNull NodeState root, @NotNull CommitInfo info) void
EmptyObserver.contentChanged
(@NotNull NodeState root, @NotNull CommitInfo info) void
Observer.contentChanged
(@NotNull NodeState root, @NotNull CommitInfo info) Observes a content change.@NotNull ThreeWayConflictHandler.Resolution
CompositeConflictHandler.deleteChangedNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState theirs, @NotNull NodeState base) @NotNull PartialConflictHandler.Resolution
ConflictHandler.deleteChangedNode
(NodeBuilder parent, String name, NodeState theirs) Deprecated.The nodetheirs
changed in the persistence store while it has been deleted locally.@Nullable PartialConflictHandler.Resolution
PartialConflictHandler.deleteChangedNode
(NodeBuilder parent, String name, NodeState theirs) Deprecated.The nodetheirs
changed in the persistence store while it has been deleted locally.@NotNull ThreeWayConflictHandler.Resolution
ThreeWayConflictHandler.deleteChangedNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState theirs, @NotNull NodeState base) The nodetheirs
changed in the persistence store while it has been deleted locally.@NotNull ThreeWayConflictHandler.Resolution
CompositeConflictHandler.deleteDeletedNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState base) @NotNull ThreeWayConflictHandler.Resolution
ThreeWayConflictHandler.deleteDeletedNode
(@NotNull NodeBuilder parent, @NotNull String name, @NotNull NodeState base) The nodename
has been removed inparent
while it was also removed in the persistence store.void
void
void
void
Called before the given before and after states are compared.void
void
void
void
protected abstract NodeStateDiff
DiffObserver.getRootDiff
(@NotNull NodeState before, @NotNull NodeState after, @NotNull CommitInfo info) Returns the diff handler to be used for the given content change.@Nullable Editor
CompositeEditorProvider.getRootEditor
(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) @Nullable Editor
EditorProvider.getRootEditor
(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) Returns an editor for processing changes between the given two states.final @Nullable Editor
ValidatorProvider.getRootEditor
(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) @Nullable Editor
WhiteboardEditorProvider.getRootEditor
(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) protected abstract @Nullable Validator
ValidatorProvider.getRootValidator
(NodeState before, NodeState after, CommitInfo info) Returns a validator for checking the changes between the given two root states.void
void
void
void
Called after the given before and after states are compared.void
void
void
void
void
static @Nullable CommitFailedException
Validates and possibly edits the given subtree by diffing and recursing through it.@NotNull NodeState
CommitHook.processCommit
(NodeState before, NodeState after, CommitInfo info) Validates and/or modifies the given content change before it gets persisted.@NotNull NodeState
CompositeHook.processCommit
(NodeState before, NodeState after, CommitInfo info) @NotNull NodeState
EditorHook.processCommit
(@NotNull NodeState before, @NotNull NodeState after, @NotNull CommitInfo info) @NotNull NodeState
EmptyHook.processCommit
(NodeState before, NodeState after, CommitInfo info) @NotNull NodeState
ResetCommitAttributeHook.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.query
Fields in org.apache.jackrabbit.oak.spi.query declared as NodeStateMethods in org.apache.jackrabbit.oak.spi.query that return NodeStateModifier and TypeMethodDescriptionQueryIndex.IndexPlan.getDefinition()
The node state with the index definition.Methods in org.apache.jackrabbit.oak.spi.query with parameters of type NodeStateModifier and TypeMethodDescriptiondouble
Estimate the worst-case cost to query with the given filter.default String
QueryIndex.getIndexName
(Filter filter, NodeState rootState) Get the specific index name (the path of the index definition, or the index type if that one is unique).QueryIndex.NodeAggregator.getParents
(NodeState rootState, String path) Get the query plan for the given filter.QueryIndex.AdvancedQueryIndex.getPlanDescription
(QueryIndex.IndexPlan plan, NodeState root) Get the query plan description (for logging purposes).QueryIndex.AdvancedQueryIndex.getPlans
(Filter filter, List<QueryIndex.OrderEntry> sortOrder, NodeState rootState) Return the possible index plans for the given filter and sort order.@NotNull List<? extends QueryIndex>
CompositeQueryIndexProvider.getQueryIndexes
(NodeState nodeState) @NotNull List<? extends QueryIndex>
QueryIndexProvider.getQueryIndexes
(NodeState nodeState) Get the currently configured indexes.@NotNull List<? extends QueryIndex>
WhiteboardIndexProvider.getQueryIndexes
(NodeState nodeState) QueryIndex.AdvancedQueryIndex.query
(QueryIndex.IndexPlan plan, NodeState rootState) Start a query.Query the index.QueryIndex.IndexPlan.Builder.setDefinition
(NodeState definition) -
Uses of NodeState in org.apache.jackrabbit.oak.spi.security.authorization.permission
Methods in org.apache.jackrabbit.oak.spi.security.authorization.permission with parameters of type NodeStateModifier and TypeMethodDescription@NotNull TreePermission
TreePermission.getChildPermission
(@NotNull String childName, @NotNull NodeState childState) Retrieve theTreePermission
for the tree identified by the specifiedchildName
andchildState
, which is a child of the tree associated with this instanceofTreePermission
. -
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.EXISTS
Predicate that checks the existence of NodeState instances.Methods in org.apache.jackrabbit.oak.spi.state that return NodeStateModifier and TypeMethodDescription@NotNull NodeState
NodeStoreBranch.getBase()
Returns the base state of this branch.@NotNull NodeState
NodeBuilder.getBaseState()
Returns the original base state that this builder is modifying.@NotNull NodeState
ReadOnlyBuilder.getBaseState()
@NotNull NodeState
NodeState.getChildNode
(@NotNull String name) Returns the named, possibly non-existent, child node.@NotNull NodeState
NodeStoreBranch.getHead()
Returns the head state of this branch.static @NotNull NodeState
Get a possibly non existing child node of a node.@NotNull NodeState
ChildNodeEntry.getNodeState()
The child node state@NotNull NodeState
NodeBuilder.getNodeState()
Returns an immutable node state that matches the current state of the builder.@NotNull NodeState
ReadOnlyBuilder.getNodeState()
@NotNull NodeState
NodeStore.getRoot()
Returns the latest state of the tree.ProxyNodeStore.getRoot()
@NotNull NodeState
NodeStore.merge
(@NotNull NodeBuilder builder, @NotNull CommitHook commitHook, @NotNull CommitInfo info) @NotNull NodeState
NodeStoreBranch.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 NodeState
NodeStore.rebase
(@NotNull NodeBuilder builder) ProxyNodeStore.rebase
(NodeBuilder builder) NodeStore.reset
(@NotNull NodeBuilder builder) Reset the passedbuilder
by throwing away all its changes and setting its base state to the current root state.ProxyNodeStore.reset
(NodeBuilder builder) @Nullable NodeState
Retrieves 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 void
AbstractRebaseDiff.addExistingNode
(NodeBuilder builder, String name, NodeState before, NodeState after) Called when the nodeafter
was added on the branch but the node exists already in the trunk.protected void
ConflictAnnotatingRebaseDiff.addExistingNode
(NodeBuilder builder, String name, NodeState before, NodeState after) void
protected abstract void
AbstractRebaseDiff.changeDeletedNode
(NodeBuilder builder, String name, NodeState after, NodeState base) Called when the nodeafter
was changed on the branch but was deleted already in the trunk.protected void
ConflictAnnotatingRebaseDiff.changeDeletedNode
(NodeBuilder builder, String name, NodeState after, NodeState base) boolean
AbstractRebaseDiff.childNodeAdded
(String name, NodeState after) boolean
ApplyDiff.childNodeAdded
(String name, NodeState after) boolean
DefaultNodeStateDiff.childNodeAdded
(String name, NodeState after) boolean
EqualsDiff.childNodeAdded
(String name, NodeState after) MoveDetector.childNodeAdded
(String name, NodeState after) @Nullable MoveValidator
MoveValidator.childNodeAdded
(String name, NodeState after) boolean
NodeStateDiff.childNodeAdded
(String name, NodeState after) Called for all added child nodes.boolean
AbstractRebaseDiff.childNodeChanged
(String name, NodeState before, NodeState after) boolean
ApplyDiff.childNodeChanged
(String name, NodeState before, NodeState after) boolean
DefaultNodeStateDiff.childNodeChanged
(String name, NodeState before, NodeState after) boolean
EqualsDiff.childNodeChanged
(String name, NodeState before, NodeState after) MoveDetector.childNodeChanged
(String name, NodeState before, NodeState after) @Nullable MoveValidator
MoveValidator.childNodeChanged
(String name, NodeState before, NodeState after) boolean
NodeStateDiff.childNodeChanged
(String name, NodeState before, NodeState after) Called for all child nodes that may contain changes between the before and after states.boolean
AbstractRebaseDiff.childNodeDeleted
(String name, NodeState before) boolean
ApplyDiff.childNodeDeleted
(String name, NodeState before) boolean
DefaultNodeStateDiff.childNodeDeleted
(String name, NodeState before) boolean
EqualsDiff.childNodeDeleted
(String name, NodeState before) MoveDetector.childNodeDeleted
(String name, NodeState before) @Nullable MoveValidator
MoveValidator.childNodeDeleted
(String name, NodeState before) boolean
NodeStateDiff.childNodeDeleted
(String name, NodeState before) Called for all deleted child nodes.boolean
AbstractNodeState.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 boolean
AbstractNodeState.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.boolean
NodeState.compareAgainstBaseState
(NodeState base, NodeStateDiff diff) Compares this node state against the given base state.static boolean
AbstractNodeState.comparePropertiesAgainstBaseState
(NodeState state, NodeState base, NodeStateDiff diff) Compares the properties ofbase
state withthis
state.protected abstract void
AbstractRebaseDiff.deleteChangedNode
(NodeBuilder builder, String name, NodeState before) Called when the nodebefore
was deleted in the branch but was already changed in the trunk.protected void
ConflictAnnotatingRebaseDiff.deleteChangedNode
(NodeBuilder builder, String name, NodeState before) protected abstract void
AbstractRebaseDiff.deleteDeletedNode
(NodeBuilder builder, String name, NodeState before) Called when the nodebefore
was deleted in the branch but was already deleted in the trunk.protected void
ConflictAnnotatingRebaseDiff.deleteDeletedNode
(NodeBuilder builder, String name, NodeState before) void
static boolean
static boolean
Diffs the given node states and returnstrue
if there are no differences.static boolean
AbstractNodeState.getBoolean
(NodeState state, String name) static long
static String
static @NotNull NodeState
Get a possibly non existing child node of a node.static @Nullable String
NodeStateUtils.getPrimaryTypeName
(NodeState nodeState) static String
AbstractNodeState.getStrings
(NodeState state, String name) void
static boolean
Diffs the given node states and returnstrue
if there are differences within the properties or direct child nodes.void
Called when a moved node has been detected.void
PrefetchNodeStore.prefetch
(Collection<String> paths, NodeState rootState) Make an attempt to prefetch node states for the given paths and hold them in a cache.@NotNull NodeBuilder
NodeBuilder.setChildNode
(@NotNull String name, @NotNull NodeState nodeState) Adds or replaces a subtree.@NotNull NodeBuilder
ReadOnlyBuilder.setChildNode
(@NotNull String name, @NotNull NodeState nodeState) void
Updates the state of the content tree of this private branch.static String
static String
Provides a string representation of the given node stateConstructors in org.apache.jackrabbit.oak.spi.state with parameters of type NodeState