Class UnixFSPathIndex
java.lang.Object
dev.getelements.elements.rt.transact.unix.UnixFSPathIndex
- All Implemented Interfaces:
PathIndex
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.getelements.elements.rt.transact.PathIndex
PathIndex.Listing -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyChange(Path path, String transactionId) Applies the change to theResourceIndexaccording to the supplied transaction ID.voidCleans up whatever may have been left behind by a partial transaction.findEntry(Path path, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) Loads theResourceEntryfrom the suppliedPath.Lists all associations betweenPathandResourceIds.voidsetUnixFSUtils(UnixFSUtils unixFSUtils) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.rt.transact.PathIndex
findEntry, findResourceId
-
Constructor Details
-
UnixFSPathIndex
public UnixFSPathIndex()
-
-
Method Details
-
cleanup
Description copied from interface:PathIndexCleans up whatever may have been left behind by a partial transaction. -
applyChange
Description copied from interface:PathIndexApplies the change to theResourceIndexaccording to the supplied transaction ID.- Specified by:
applyChangein interfacePathIndex- Parameters:
path- thePathtransactionId- the transaction ID from which to apply
-
findEntry
public Optional<ResourceEntry> findEntry(Path path, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) Description copied from interface:PathIndexLoads theResourceEntryfrom the suppliedPath. If non-existent then this will load a nascent path entry. -
list
Description copied from interface:PathIndexLists all associations betweenPathandResourceIds. This inclues listing of direct path links as well as wildcard path links.- Specified by:
listin interfacePathIndex- Parameters:
rtPath- thePath, may be wildcard if searching for multiple paths.- Returns:
- a
Stream<ResourceService.Listing>instances
-
getUnixFSUtils
-
setUnixFSUtils
-