Class RevisionHistory
java.lang.Object
org.apache.jackrabbit.oak.segment.file.tooling.RevisionHistory
Utility for tracing a node back through the revision history.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Representation of a point in time for a given node. -
Constructor Summary
ConstructorsConstructorDescriptionRevisionHistory
(@NotNull File directory) Create a new instance for aReadOnlyFileStore
in the givendirectory
. -
Method Summary
Modifier and TypeMethodDescriptiongetHistory
(@NotNull JournalFile journal, @NotNull String path) Return the history of the node at the givenpath
according to the passedjournal
.
-
Constructor Details
-
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 Details
-
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
-