Class 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".

    • Method Detail

      • addObserver

        public Closeable addObserver​(org.apache.jackrabbit.oak.spi.commit.Observer observer)
        Specified by:
        addObserver in interface org.apache.jackrabbit.oak.spi.commit.Observable
      • getRoot

        @NotNull
        public @NotNull org.apache.jackrabbit.oak.spi.state.NodeState getRoot()
        Specified by:
        getRoot in interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.apache.jackrabbit.oak.spi.state.NodeStore
      • checkpoint

        @NotNull
        public @NotNull String checkpoint​(long lifetime,
                                          @NotNull
                                          @NotNull Map<String,​String> properties)
        Specified by:
        checkpoint in interface org.apache.jackrabbit.oak.spi.state.NodeStore
      • checkpoint

        @NotNull
        public @NotNull String checkpoint​(long lifetime)
        Specified by:
        checkpoint in interface org.apache.jackrabbit.oak.spi.state.NodeStore
      • checkpointInfo

        @NotNull
        public @NotNull Map<String,​String> checkpointInfo​(@NotNull
                                                                @NotNull String checkpoint)
        Specified by:
        checkpointInfo in interface org.apache.jackrabbit.oak.spi.state.NodeStore
      • checkpoints

        @NotNull
        public @NotNull Iterable<String> checkpoints()
        Specified by:
        checkpoints in interface org.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 interface org.apache.jackrabbit.oak.spi.state.NodeStore
      • release

        public boolean release​(@NotNull
                               @NotNull String checkpoint)
        Specified by:
        release in interface org.apache.jackrabbit.oak.spi.state.NodeStore