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 classRevisionHistory.HistoryElementRepresentation of a point in time for a given node.
-
Constructor Summary
Constructors Constructor Description RevisionHistory(@NotNull File directory)Create a new instance for aReadOnlyFileStorein 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 givenpathaccording to the passedjournal.
-
-
-
Constructor Detail
-
RevisionHistory
public RevisionHistory(@NotNull @NotNull File directory) throws IOException, InvalidFileStoreVersionExceptionCreate a new instance for aReadOnlyFileStorein the givendirectory.- Parameters:
directory-- Throws:
IOExceptionInvalidFileStoreVersionException
-
-
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 givenpathaccording to the passedjournal.- Parameters:
journal-path-- Returns:
- Throws:
IOException
-
-