public class DocumentNodeState extends AbstractDocumentNodeState implements org.apache.jackrabbit.oak.cache.CacheValue
NodeState implementation for the DocumentNodeStore.| Modifier and Type | Class and Description |
|---|---|
protected static class |
DocumentNodeState.BundlingContext |
static class |
DocumentNodeState.Children
A list of children for a node.
|
| Modifier and Type | Field and Description |
|---|---|
static DocumentNodeState.Children |
NO_CHILDREN |
EXISTS| Modifier | Constructor and Description |
|---|---|
protected |
DocumentNodeState(@NotNull DocumentNodeStore store,
@NotNull String path,
@Nullable RevisionVector lastRevision,
@Nullable RevisionVector rootRevision,
boolean fromExternalChange,
DocumentNodeState.BundlingContext bundlingContext) |
compareAgainstBaseState, equalscheckValidName, compareAgainstBaseState, comparePropertiesAgainstBaseState, count, equals, getBoolean, getBoolean, getChildNodeNames, getLong, getLong, getName, getName, getNames, getNames, getString, getString, getStrings, getStrings, hashCode, isValidName, toStringpublic static final DocumentNodeState.Children NO_CHILDREN
protected DocumentNodeState(@NotNull
@NotNull DocumentNodeStore store,
@NotNull
@NotNull String path,
@Nullable
@Nullable RevisionVector lastRevision,
@Nullable
@Nullable RevisionVector rootRevision,
boolean fromExternalChange,
DocumentNodeState.BundlingContext bundlingContext)
public DocumentNodeState withRootRevision(@NotNull @NotNull RevisionVector root, boolean externalChange)
DocumentNodeState with the
rootRevision set to the given root revision. This method
returns this instance if the given root revision is
the same as the one in this instance and the fromExternalChange
flags are equal.withRootRevision in class AbstractDocumentNodeStateroot - the root revision for the copy of this node state.externalChange - if the fromExternalChange flag must be
set on the returned node state.@NotNull public @NotNull DocumentNodeState fromExternalChange()
DocumentNodeState with the
fromExternalChange flag set to true.public boolean isFromExternalChange()
isFromExternalChange in class AbstractDocumentNodeStatetrue if this node state was created as a result of an
external change; false otherwise.@NotNull public @NotNull RevisionVector getRootRevision()
getRootRevision in class AbstractDocumentNodeStatepublic String getPath()
getPath in class AbstractDocumentNodeStatepublic RevisionVector getLastRevision()
getLastRevision in class AbstractDocumentNodeStatepublic boolean exists()
exists in interface org.apache.jackrabbit.oak.spi.state.NodeStatepublic org.apache.jackrabbit.oak.api.PropertyState getProperty(@NotNull @NotNull String name)
getProperty in interface org.apache.jackrabbit.oak.spi.state.NodeStategetProperty in class org.apache.jackrabbit.oak.spi.state.AbstractNodeStatepublic boolean hasProperty(@NotNull
@NotNull String name)
hasProperty in interface org.apache.jackrabbit.oak.spi.state.NodeStatehasProperty in class org.apache.jackrabbit.oak.spi.state.AbstractNodeState@NotNull public @NotNull Iterable<? extends org.apache.jackrabbit.oak.api.PropertyState> getProperties()
getProperties in interface org.apache.jackrabbit.oak.spi.state.NodeStatepublic boolean hasChildNode(@NotNull
@NotNull String name)
hasChildNode in interface org.apache.jackrabbit.oak.spi.state.NodeState@NotNull public @NotNull org.apache.jackrabbit.oak.spi.state.NodeState getChildNode(@NotNull @NotNull String name)
getChildNode in interface org.apache.jackrabbit.oak.spi.state.NodeStatepublic long getChildNodeCount(long max)
getChildNodeCount in interface org.apache.jackrabbit.oak.spi.state.NodeStategetChildNodeCount in class org.apache.jackrabbit.oak.spi.state.AbstractNodeStatepublic long getPropertyCount()
getPropertyCount in interface org.apache.jackrabbit.oak.spi.state.NodeStategetPropertyCount in class org.apache.jackrabbit.oak.spi.state.AbstractNodeState@NotNull public @NotNull Iterable<? extends org.apache.jackrabbit.oak.spi.state.ChildNodeEntry> getChildNodeEntries()
getChildNodeEntries in interface org.apache.jackrabbit.oak.spi.state.NodeState@NotNull public @NotNull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder()
builder in interface org.apache.jackrabbit.oak.spi.state.NodeStatepublic boolean hasOnlyBundledChildren()
public boolean hasNoChildren()
hasNoChildren in class AbstractDocumentNodeStateprotected NodeStateDiffer getNodeStateDiffer()
getNodeStateDiffer in class AbstractDocumentNodeStatepublic String toString()
toString in class org.apache.jackrabbit.oak.spi.state.AbstractNodeStatepublic int getMemory()
getMemory in interface org.apache.jackrabbit.oak.cache.CacheValuepublic Iterable<DocumentNodeState> getAllBundledNodesStates()
public String asString()
public static DocumentNodeState fromString(DocumentNodeStore store, String s)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.