public class SegmentNodeStore extends Object implements org.apache.jackrabbit.oak.spi.state.NodeStore, org.apache.jackrabbit.oak.spi.commit.Observable
The root node of the JCR content tree is actually stored in the node "/root", and checkpoints are stored under "/checkpoints".
Modifier and Type | Class and Description |
---|---|
static class |
SegmentNodeStore.SegmentNodeStoreBuilder |
Modifier and Type | Field and Description |
---|---|
static String |
CHECKPOINTS |
public static final String CHECKPOINTS
@Nonnull public static SegmentNodeStore.SegmentNodeStoreBuilder builder(@Nonnull Revisions revisions, @Nonnull SegmentReader reader, @Nonnull SegmentWriter writer, @Nullable org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore)
public Closeable addObserver(org.apache.jackrabbit.oak.spi.commit.Observer observer)
addObserver
in interface org.apache.jackrabbit.oak.spi.commit.Observable
@Nonnull public org.apache.jackrabbit.oak.spi.state.NodeState getRoot()
getRoot
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@Nonnull public org.apache.jackrabbit.oak.spi.state.NodeState merge(@Nonnull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder, @Nonnull org.apache.jackrabbit.oak.spi.commit.CommitHook commitHook, @Nonnull org.apache.jackrabbit.oak.spi.commit.CommitInfo info) throws org.apache.jackrabbit.oak.api.CommitFailedException
merge
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
org.apache.jackrabbit.oak.api.CommitFailedException
@Nonnull public org.apache.jackrabbit.oak.spi.state.NodeState rebase(@Nonnull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder)
rebase
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@Nonnull public org.apache.jackrabbit.oak.spi.state.NodeState reset(@Nonnull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder)
reset
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@Nonnull public org.apache.jackrabbit.oak.api.Blob createBlob(InputStream stream) throws IOException
createBlob
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
IOException
public org.apache.jackrabbit.oak.api.Blob getBlob(@Nonnull String reference)
getBlob
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@Nonnull public String checkpoint(long lifetime, @Nonnull Map<String,String> properties)
checkpoint
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@Nonnull public String checkpoint(long lifetime)
checkpoint
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@Nonnull public Map<String,String> checkpointInfo(@Nonnull String checkpoint)
checkpointInfo
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@Nonnull public Iterable<String> checkpoints()
checkpoints
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@CheckForNull public org.apache.jackrabbit.oak.spi.state.NodeState retrieve(@Nonnull String checkpoint)
retrieve
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
public boolean release(@Nonnull String checkpoint)
release
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
public SegmentNodeStoreStats getStats()
Copyright © 2012-2019 The Apache Software Foundation. All Rights Reserved.