net.ontopia.topicmaps.utils.tmrap
Interface TopicIndexIF

All Superinterfaces:
IndexIF
All Known Implementing Classes:
FederatedTopicIndex, RegistryTopicIndex, RemoteTopicIndex, TopicMapTopicIndex

public interface TopicIndexIF
extends IndexIF

EXPERIMENTAL: An index through which information about topics with a particular subject can be located, irrespective of where these topics happen to be stored.


Method Summary
 void close()
          Lets go of any underlying resources used by the index.
 java.util.Collection getTopicPages(java.util.Collection indicators, java.util.Collection sources, java.util.Collection subjects)
          Returns all known topic pages for the topics whose identity matches one of the locators passed as arguments.
 TopicPages getTopicPages2(java.util.Collection indicators, java.util.Collection sources, java.util.Collection subjects)
          Returns all known topic pages for the topics whose identity matches one of the locators passed as arguments.
 java.util.Collection getTopics(java.util.Collection indicators, java.util.Collection sources, java.util.Collection subjects)
          Returns all topics the index knows about whose identity matches one the of the locators passed as arguments.
 java.util.Collection loadRelatedTopics(java.util.Collection indicators, java.util.Collection sources, java.util.Collection subjects, boolean two_steps)
           
 

Method Detail

getTopics

java.util.Collection getTopics(java.util.Collection indicators,
                               java.util.Collection sources,
                               java.util.Collection subjects)
Returns all topics the index knows about whose identity matches one the of the locators passed as arguments.

Parameters:
indicators - A collection of subject identifiers as LocatorIF objects.
sources - A collection of source locators as LocatorIF objects.
subjects - A colleciton of subject locators as LocatorIF objects.
Returns:
Collection of TopicIF

loadRelatedTopics

java.util.Collection loadRelatedTopics(java.util.Collection indicators,
                                       java.util.Collection sources,
                                       java.util.Collection subjects,
                                       boolean two_steps)

getTopicPages

java.util.Collection getTopicPages(java.util.Collection indicators,
                                   java.util.Collection sources,
                                   java.util.Collection subjects)
Returns all known topic pages for the topics whose identity matches one of the locators passed as arguments.

Parameters:
indicators - A collection of subject identifiers as LocatorIF objects.
sources - A collection of source locators as LocatorIF objects.
subjects - A colleciton of subject locators as LocatorIF objects.
Returns:
Collection of TopicPage

getTopicPages2

TopicPages getTopicPages2(java.util.Collection indicators,
                          java.util.Collection sources,
                          java.util.Collection subjects)
Returns all known topic pages for the topics whose identity matches one of the locators passed as arguments.

Parameters:
indicators - A collection of subject identifiers as LocatorIF objects.
sources - A collection of source locators as LocatorIF objects.
subjects - A colleciton of subject locators as LocatorIF objects.
Returns:
Collection of TopicPage

close

void close()
Lets go of any underlying resources used by the index. Must be called when used with the RDBMS backend.



Copyright © 2000-2012 Ontopia.