Class PurgeOldVersionUtils
java.lang.Object
org.apache.jackrabbit.oak.indexversion.PurgeOldVersionUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long
getMillisFromString
(String strDate) static NodeBuilder
getNode
(@NotNull NodeBuilder nodeBuilder, @NotNull String path) static boolean
isBaseIndexEqual
(String commandlineIndexPath, String repositoryIndexPath) static boolean
isIndexChildNode
(String commandlineIndexPath, String repositoryIndexPath) static void
recursiveDeleteHiddenChildNodes
(NodeStore store, String path)
-
Field Details
-
OAK_INDEX
- See Also:
-
-
Constructor Details
-
PurgeOldVersionUtils
public PurgeOldVersionUtils()
-
-
Method Details
-
getMillisFromString
-
getNode
public static NodeBuilder getNode(@NotNull @NotNull NodeBuilder nodeBuilder, @NotNull @NotNull String path) - Parameters:
nodeBuilder
-path
- Path of node whose nodeBuilder object should be returned.- Returns:
- nodeBuilder object of node at @param{path}
-
recursiveDeleteHiddenChildNodes
public static void recursiveDeleteHiddenChildNodes(NodeStore store, String path) throws CommitFailedException - Parameters:
store
-path
-- Throws:
CommitFailedException
- recursively deletes child nodes under path
-
isBaseIndexEqual
- Parameters:
commandlineIndexPath
-repositoryIndexPath
-- Returns:
- true if baseIndexName at commandlineIndexPath and repositoryIndexPath are equal
-
isIndexChildNode
- Parameters:
commandlineIndexPath
-repositoryIndexPath
-- Returns:
- true if repositoryIndexPath is child of commandlineIndexPath
-