T- The generic [T]ype of the resource.
public interface IResourceLocator<T extends ILocatableResource>
ILocatableResourceinstance. "Locating" a relation means (a) resolving the namespace for the resource to the resource declaration as of some timestamp; and (b) materializing (often from cache) an
ILocatableResourcefor that resource. Locatable resources are essentially containers for indices, including an
IDatabase, which is essentially a container for
Note: a locator does not proxy for a resource. Either the resource is locally
accessible, including the case of a resource distributed across a federation,
or it is not since the resource is accessible using the
IBigdataFederation's API. However, you CAN NOT "locate" a
local resource on another JVM or machine using this interface.
|Modifier and Type||Method and Description|
Discard unisolated resource views from the locator cache.
Resources that hold hard references to local index objects MUST be discarded during abort processing.
T locate(String namespace, long timestamp)
namespace- The resource namespace.
timestamp- The timestamp for the view.
nullif the resource declaration could not be resolved.
void discard(ILocatableResource<T> instance, boolean destroyed)
instance- The instance whose cached references should be discarded.
trueiff the resource was destroyed, in which case the read-committed and unisolated views must also be discarded even if they do not correspond to the instance.
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.