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 |
Modifier and Type | Method and Description |
---|---|
Closeable |
addObserver(org.apache.jackrabbit.oak.spi.commit.Observer observer) |
static SegmentNodeStore.SegmentNodeStoreBuilder |
builder(Revisions revisions,
SegmentReader reader,
SegmentWriter writer,
org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore) |
String |
checkpoint(long lifetime) |
String |
checkpoint(long lifetime,
Map<String,String> properties) |
Map<String,String> |
checkpointInfo(String checkpoint) |
org.apache.jackrabbit.oak.api.Blob |
createBlob(InputStream stream) |
org.apache.jackrabbit.oak.api.Blob |
getBlob(String reference) |
org.apache.jackrabbit.oak.spi.state.NodeState |
getRoot() |
org.apache.jackrabbit.oak.spi.state.NodeState |
merge(org.apache.jackrabbit.oak.spi.state.NodeBuilder builder,
org.apache.jackrabbit.oak.spi.commit.CommitHook commitHook,
org.apache.jackrabbit.oak.spi.commit.CommitInfo info) |
org.apache.jackrabbit.oak.spi.state.NodeState |
rebase(org.apache.jackrabbit.oak.spi.state.NodeBuilder builder) |
boolean |
release(String checkpoint) |
org.apache.jackrabbit.oak.spi.state.NodeState |
reset(org.apache.jackrabbit.oak.spi.state.NodeBuilder builder) |
org.apache.jackrabbit.oak.spi.state.NodeState |
retrieve(String checkpoint) |
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
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
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
@CheckForNull public org.apache.jackrabbit.oak.spi.state.NodeState retrieve(@Nonnull String checkpoint)
retrieve
in interface org.apache.jackrabbit.oak.spi.state.NodeStore
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.