com.bigdata.relation.locator
Class ResourceLocatorMap<T extends ILocatableResource>

java.lang.Object
  extended by com.bigdata.relation.locator.ResourceLocatorMap<T>
All Implemented Interfaces:
IResourceLocator<T>

Deprecated. this is only useful if explicitly enumerating the resource locators.

public class ResourceLocatorMap<T extends ILocatableResource>
extends Object
implements IResourceLocator<T>

A mapping between Strings and IResourceLocators. This can be used to locate local, temporary or virtual relations.

Version:
$Id: ResourceLocatorMap.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Constructor Summary
ResourceLocatorMap()
          Deprecated. De-serialization ctor.
 
Method Summary
 void add(String relationName, IResourceLocator<T> relationLocator)
          Deprecated. Add a mapping from an String to the IResourceLocator for the identified IRelation.
 T locate(String relationName, long timestamp)
          Deprecated. Locate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLocatorMap

public ResourceLocatorMap()
Deprecated. 
De-serialization ctor.

Method Detail

add

public void add(String relationName,
                IResourceLocator<T> relationLocator)
Deprecated. 
Add a mapping from an String to the IResourceLocator for the identified IRelation.

Parameters:
relationName - The relation name.
relationLocator - The locator.

locate

public T locate(String relationName,
                long timestamp)
Deprecated. 
Description copied from interface: IResourceLocator
Locate.

Specified by:
locate in interface IResourceLocator<T extends ILocatableResource>
Parameters:
relationName - The resource namespace.
timestamp - The timestamp for the view.
Returns:
A view of the resource iff it exists (specifically, if the declaration for the resource can be resolved) -or- null if the resource declaration could not be resolved.


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.