Class SegmentNodeStore
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.SegmentNodeStore
-
- All Implemented Interfaces:
org.apache.jackrabbit.oak.spi.commit.Observable
,org.apache.jackrabbit.oak.spi.state.NodeStore
public class SegmentNodeStore extends Object implements org.apache.jackrabbit.oak.spi.state.NodeStore, org.apache.jackrabbit.oak.spi.commit.Observable
The top level class for the segment store.The root node of the JCR content tree is actually stored in the node "/root", and checkpoints are stored under "/checkpoints".
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SegmentNodeStore.SegmentNodeStoreBuilder
-
Field Summary
Fields Modifier and Type Field Description static String
CHECKPOINTS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Closeable
addObserver(org.apache.jackrabbit.oak.spi.commit.Observer observer)
static @NotNull SegmentNodeStore.SegmentNodeStoreBuilder
builder(@NotNull Revisions revisions, @NotNull SegmentReader reader, @NotNull SegmentWriter writer, @Nullable org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore)
@NotNull String
checkpoint(long lifetime)
@NotNull String
checkpoint(long lifetime, @NotNull Map<String,String> properties)
@NotNull Map<String,String>
checkpointInfo(@NotNull String checkpoint)
@NotNull Iterable<String>
checkpoints()
@NotNull org.apache.jackrabbit.oak.api.Blob
createBlob(InputStream stream)
org.apache.jackrabbit.oak.api.Blob
getBlob(@NotNull String reference)
@NotNull org.apache.jackrabbit.oak.spi.state.NodeState
getRoot()
SegmentNodeStoreStats
getStats()
@NotNull org.apache.jackrabbit.oak.spi.state.NodeState
merge(@NotNull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder, @NotNull org.apache.jackrabbit.oak.spi.commit.CommitHook commitHook, @NotNull org.apache.jackrabbit.oak.spi.commit.CommitInfo info)
@NotNull org.apache.jackrabbit.oak.spi.state.NodeState
rebase(@NotNull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder)
boolean
release(@NotNull String checkpoint)
@NotNull org.apache.jackrabbit.oak.spi.state.NodeState
reset(@NotNull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder)
@Nullable org.apache.jackrabbit.oak.spi.state.NodeState
retrieve(@NotNull String checkpoint)
-
-
-
Field Detail
-
CHECKPOINTS
public static final String CHECKPOINTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
@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)
-
addObserver
public Closeable addObserver(org.apache.jackrabbit.oak.spi.commit.Observer observer)
- Specified by:
addObserver
in interfaceorg.apache.jackrabbit.oak.spi.commit.Observable
-
getRoot
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.state.NodeState getRoot()
- Specified by:
getRoot
in interfaceorg.apache.jackrabbit.oak.spi.state.NodeStore
-
merge
@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
- Specified by:
merge
in interfaceorg.apache.jackrabbit.oak.spi.state.NodeStore
- Throws:
org.apache.jackrabbit.oak.api.CommitFailedException
-
rebase
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.state.NodeState rebase(@NotNull @NotNull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder)
- Specified by:
rebase
in interfaceorg.apache.jackrabbit.oak.spi.state.NodeStore
-
reset
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.state.NodeState reset(@NotNull @NotNull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder)
- Specified by:
reset
in interfaceorg.apache.jackrabbit.oak.spi.state.NodeStore
-
createBlob
@NotNull public @NotNull org.apache.jackrabbit.oak.api.Blob createBlob(InputStream stream) throws IOException
- Specified by:
createBlob
in interfaceorg.apache.jackrabbit.oak.spi.state.NodeStore
- Throws:
IOException
-
getBlob
public org.apache.jackrabbit.oak.api.Blob getBlob(@NotNull @NotNull String reference)
- Specified by:
getBlob
in interfaceorg.apache.jackrabbit.oak.spi.state.NodeStore
-
checkpoint
@NotNull public @NotNull String checkpoint(long lifetime, @NotNull @NotNull Map<String,String> properties)
- Specified by:
checkpoint
in interfaceorg.apache.jackrabbit.oak.spi.state.NodeStore
-
checkpoint
@NotNull public @NotNull String checkpoint(long lifetime)
- Specified by:
checkpoint
in interfaceorg.apache.jackrabbit.oak.spi.state.NodeStore
-
checkpointInfo
@NotNull public @NotNull Map<String,String> checkpointInfo(@NotNull @NotNull String checkpoint)
- Specified by:
checkpointInfo
in interfaceorg.apache.jackrabbit.oak.spi.state.NodeStore
-
checkpoints
@NotNull public @NotNull Iterable<String> checkpoints()
- Specified by:
checkpoints
in interfaceorg.apache.jackrabbit.oak.spi.state.NodeStore
-
retrieve
@Nullable public @Nullable org.apache.jackrabbit.oak.spi.state.NodeState retrieve(@NotNull @NotNull String checkpoint)
- Specified by:
retrieve
in interfaceorg.apache.jackrabbit.oak.spi.state.NodeStore
-
release
public boolean release(@NotNull @NotNull String checkpoint)
- Specified by:
release
in interfaceorg.apache.jackrabbit.oak.spi.state.NodeStore
-
getStats
public SegmentNodeStoreStats getStats()
-
-