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
@NotNull public static @NotNull SegmentNodeStore.SegmentNodeStoreBuilder builder(@NotNull @NotNull Revisions revisions, @NotNull @NotNull SegmentReader reader, @NotNull @NotNull SegmentWriter writer, @Nullable @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
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.state.NodeState getRoot()
getRoot
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.state.NodeState merge(@NotNull @NotNull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder, @NotNull @NotNull org.apache.jackrabbit.oak.spi.commit.CommitHook commitHook, @NotNull @NotNull 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
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.state.NodeState rebase(@NotNull @NotNull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder)
rebase
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.state.NodeState reset(@NotNull @NotNull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder)
reset
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@NotNull public @NotNull 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(@NotNull @NotNull String reference)
getBlob
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@NotNull public @NotNull String checkpoint(long lifetime, @NotNull @NotNull Map<String,String> properties)
checkpoint
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@NotNull public @NotNull String checkpoint(long lifetime)
checkpoint
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@NotNull public @NotNull Map<String,String> checkpointInfo(@NotNull @NotNull String checkpoint)
checkpointInfo
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@NotNull public @NotNull Iterable<String> checkpoints()
checkpoints
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
@Nullable public @Nullable org.apache.jackrabbit.oak.spi.state.NodeState retrieve(@NotNull @NotNull String checkpoint)
retrieve
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
public boolean release(@NotNull @NotNull String checkpoint)
release
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
public SegmentNodeStoreStats getStats()
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.