Class RevisionHistory
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.file.tooling.RevisionHistory
-
public class RevisionHistory extends Object
Utility for tracing a node back through the revision history.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RevisionHistory.HistoryElement
Representation of a point in time for a given node.
-
Constructor Summary
Constructors Constructor Description RevisionHistory(@NotNull File directory)
Create a new instance for aReadOnlyFileStore
in the givendirectory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<RevisionHistory.HistoryElement>
getHistory(@NotNull JournalFile journal, @NotNull String path)
Return the history of the node at the givenpath
according to the passedjournal
.
-
-
-
Constructor Detail
-
RevisionHistory
public RevisionHistory(@NotNull @NotNull File directory) throws IOException, InvalidFileStoreVersionException
Create a new instance for aReadOnlyFileStore
in the givendirectory
.- Parameters:
directory
-- Throws:
IOException
InvalidFileStoreVersionException
-
-
Method Detail
-
getHistory
public Iterator<RevisionHistory.HistoryElement> getHistory(@NotNull @NotNull JournalFile journal, @NotNull @NotNull String path) throws IOException
Return the history of the node at the givenpath
according to the passedjournal
.- Parameters:
journal
-path
-- Returns:
- Throws:
IOException
-
-