T
- The generic [T]ype of the resource.public interface IResourceLocator<T extends ILocatableResource>
ILocatableResource
instance. "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
ILocatableResource
for that resource. Locatable resources are
essentially containers for indices, including an IRelation
and an
IDatabase
, which is essentially a container for IRelation
s.
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 |
---|---|
void |
clearUnisolatedCache()
Discard unisolated resource views from the locator cache.
|
void |
discard(ILocatableResource<T> instance,
boolean destroyed)
Resources that hold hard references to local index objects MUST be
discarded during abort processing.
|
T |
locate(String namespace,
long timestamp)
Locate.
|
T locate(String namespace, long timestamp)
namespace
- The resource namespace.timestamp
- The timestamp for the view.null
if the resource declaration could not be
resolved.void discard(ILocatableResource<T> instance, boolean destroyed)
instance
- The instance whose cached references should be discarded.destroyed
- true
iff 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.void clearUnisolatedCache()
BLZG-2023, BLZG-2041.
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.