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 TypeMethodDescriptionvoid
applyChange
(Path path, String transactionId) Applies the change to theResourceIndex
according to the supplied transaction ID.void
Cleans up whatever may have been left behind by a partial transaction.findEntry
(Path path, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) Loads theResourceEntry
from the suppliedPath
.Lists all associations betweenPath
andResourceId
s.void
setUnixFSUtils
(UnixFSUtils unixFSUtils) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.rt.transact.PathIndex
findEntry, findResourceId
-
Constructor Details
-
UnixFSPathIndex
public UnixFSPathIndex()
-
-
Method Details
-
cleanup
Description copied from interface:PathIndex
Cleans up whatever may have been left behind by a partial transaction. -
applyChange
Description copied from interface:PathIndex
Applies the change to theResourceIndex
according to the supplied transaction ID.- Specified by:
applyChange
in interfacePathIndex
- Parameters:
path
- thePath
transactionId
- the transaction ID from which to apply
-
findEntry
public Optional<ResourceEntry> findEntry(Path path, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) Description copied from interface:PathIndex
Loads theResourceEntry
from the suppliedPath
. If non-existent then this will load a nascent path entry. -
list
Description copied from interface:PathIndex
Lists all associations betweenPath
andResourceId
s. This inclues listing of direct path links as well as wildcard path links.- Specified by:
list
in interfacePathIndex
- Parameters:
rtPath
- thePath
, may be wildcard if searching for multiple paths.- Returns:
- a
Stream<ResourceService.Listing>
instances
-
getUnixFSUtils
-
setUnixFSUtils
-