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 | Field and Description |
|---|---|
static String |
CHECKPOINTS |
| Constructor and Description |
|---|
SegmentNodeStore() |
SegmentNodeStore(SegmentStore store)
Deprecated.
Use
newSegmentNodeStore(SegmentStore) instead |
| Modifier and Type | Method and Description |
|---|---|
Closeable |
addObserver(org.apache.jackrabbit.oak.spi.commit.Observer observer) |
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 |
getSuperRoot() |
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) |
static SegmentNodeStoreBuilder |
newSegmentNodeStore(SegmentStore store) |
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
@Deprecated public SegmentNodeStore(SegmentStore store)
newSegmentNodeStore(SegmentStore) insteadpublic SegmentNodeStore()
throws IOException
IOException@Nonnull public static SegmentNodeStoreBuilder newSegmentNodeStore(@Nonnull SegmentStore store)
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 getSuperRoot()
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.NodeStoreorg.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.NodeStorepublic org.apache.jackrabbit.oak.api.Blob createBlob(InputStream stream) throws IOException
createBlob in interface org.apache.jackrabbit.oak.spi.state.NodeStoreIOExceptionpublic 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.NodeStoreCopyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.