de.topicmapslab.majortom.redis.store.index
Class RedisScopedIndex

java.lang.Object
  extended by de.topicmapslab.majortom.index.IndexImpl<RedisTopicMapStore>
      extended by de.topicmapslab.majortom.redis.store.index.RedisScopedIndex
All Implemented Interfaces:
de.topicmapslab.majortom.model.index.IIndex, de.topicmapslab.majortom.model.index.IScopedIndex, org.tmapi.index.Index, org.tmapi.index.ScopedIndex

public class RedisScopedIndex
extends IndexImpl<RedisTopicMapStore>
implements de.topicmapslab.majortom.model.index.IScopedIndex


Field Summary
private  RedisHandler redis
           
 
Constructor Summary
RedisScopedIndex(RedisTopicMapStore store)
          Constructor
 
Method Summary
 java.util.Collection<org.tmapi.core.Association> getAssociations(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
           
 java.util.Collection<org.tmapi.core.Association> getAssociations(de.topicmapslab.majortom.model.core.IScope... scopes)
           
 java.util.Collection<org.tmapi.core.Association> getAssociations(de.topicmapslab.majortom.model.core.IScope scope)
           
 java.util.Collection<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic theme)
           
 java.util.Collection<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic[] themes, boolean arg1)
           
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getAssociationScopes()
           
 java.util.Collection<org.tmapi.core.Topic> getAssociationThemes()
           
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(de.topicmapslab.majortom.model.core.IScope... scopes)
           
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(de.topicmapslab.majortom.model.core.IScope scope)
           
 java.util.Collection<org.tmapi.core.Name> getNames(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
           
 java.util.Collection<org.tmapi.core.Name> getNames(de.topicmapslab.majortom.model.core.IScope... scopes)
           
 java.util.Collection<org.tmapi.core.Name> getNames(de.topicmapslab.majortom.model.core.IScope scope)
           
 java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic theme)
           
 java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic[] themes, boolean arg1)
           
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getNameScopes()
           
 java.util.Collection<org.tmapi.core.Topic> getNameThemes()
           
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
           
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(de.topicmapslab.majortom.model.core.IScope... scopes)
           
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(de.topicmapslab.majortom.model.core.IScope scope)
           
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic theme)
           
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic[] themes, boolean arg1)
           
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getOccurrenceScopes()
           
 java.util.Collection<org.tmapi.core.Topic> getOccurrenceThemes()
           
 java.util.Collection<org.tmapi.core.Scoped> getScopables(de.topicmapslab.majortom.model.core.IScope... scopes)
           
 java.util.Collection<org.tmapi.core.Scoped> getScopables(de.topicmapslab.majortom.model.core.IScope scope)
           
 de.topicmapslab.majortom.model.core.IScope getScope(java.util.Collection<? extends org.tmapi.core.Topic> themes)
           
 de.topicmapslab.majortom.model.core.IScope getScope(org.tmapi.core.Topic... themes)
           
 java.util.Set<java.lang.String> getScopeIdsByTheme(org.tmapi.core.Topic theme)
           
 java.util.Set<java.lang.String> getScopeIdsByThemes(java.util.Collection<org.tmapi.core.Topic> themes, boolean matchAll)
           
 java.util.Set<java.lang.String> getScopeIdsByThemes(org.tmapi.core.Topic[] themes, boolean matchAll)
           
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopes(java.util.Collection<org.tmapi.core.Topic> themes, boolean matchAll)
           
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopes(java.lang.String TYPE)
          Utility method to read all scopes of the construct redis key
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopes(org.tmapi.core.Topic... themes)
           
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopes(org.tmapi.core.Topic[] themes, boolean arg1)
           
 java.util.Collection<org.tmapi.core.Topic> getThemes(java.lang.String TYPE)
          Utility method to read all themes of a specific construct redis key
 de.topicmapslab.majortom.model.core.ITopicMap getTopicMap()
          Returns the topic map
 java.util.Collection<org.tmapi.core.Variant> getVariants(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
           
 java.util.Collection<org.tmapi.core.Variant> getVariants(de.topicmapslab.majortom.model.core.IScope... scopes)
           
 java.util.Collection<org.tmapi.core.Variant> getVariants(de.topicmapslab.majortom.model.core.IScope scope)
           
 java.util.Collection<org.tmapi.core.Variant> getVariants(org.tmapi.core.Topic theme)
           
 java.util.Collection<org.tmapi.core.Variant> getVariants(org.tmapi.core.Topic[] themes, boolean arg1)
           
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getVariantScopes()
           
 java.util.Collection<org.tmapi.core.Topic> getVariantThemes()
           
 
Methods inherited from class de.topicmapslab.majortom.index.IndexImpl
clear, close, getTopicMapStore, isAutoUpdated, isOpen, open, reindex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.topicmapslab.majortom.model.index.IIndex
clear
 
Methods inherited from interface org.tmapi.index.Index
close, isAutoUpdated, isOpen, open, reindex
 

Field Detail

redis

private final RedisHandler redis
Constructor Detail

RedisScopedIndex

public RedisScopedIndex(RedisTopicMapStore store)
Constructor

Parameters:
store - the topic map store
Method Detail

getTopicMap

public de.topicmapslab.majortom.model.core.ITopicMap getTopicMap()
Returns the topic map

Returns:
the topic map

getScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopes(java.lang.String TYPE)
Utility method to read all scopes of the construct redis key

Parameters:
TYPE - the key
Returns:
a set of scopess

getThemes

public java.util.Collection<org.tmapi.core.Topic> getThemes(java.lang.String TYPE)
Utility method to read all themes of a specific construct redis key

Parameters:
TYPE - the key
Returns:
a set of topic themes

getAssociationThemes

public java.util.Collection<org.tmapi.core.Topic> getAssociationThemes()
Specified by:
getAssociationThemes in interface org.tmapi.index.ScopedIndex

getAssociations

public java.util.Collection<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic theme)
Specified by:
getAssociations in interface org.tmapi.index.ScopedIndex

getAssociations

public java.util.Collection<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic[] themes,
                                                                        boolean arg1)
Specified by:
getAssociations in interface org.tmapi.index.ScopedIndex

getNameThemes

public java.util.Collection<org.tmapi.core.Topic> getNameThemes()
Specified by:
getNameThemes in interface org.tmapi.index.ScopedIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic theme)
Specified by:
getNames in interface org.tmapi.index.ScopedIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic[] themes,
                                                          boolean arg1)
Specified by:
getNames in interface org.tmapi.index.ScopedIndex

getOccurrenceThemes

public java.util.Collection<org.tmapi.core.Topic> getOccurrenceThemes()
Specified by:
getOccurrenceThemes in interface org.tmapi.index.ScopedIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic theme)
Specified by:
getOccurrences in interface org.tmapi.index.ScopedIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic[] themes,
                                                                      boolean arg1)
Specified by:
getOccurrences in interface org.tmapi.index.ScopedIndex

getVariantThemes

public java.util.Collection<org.tmapi.core.Topic> getVariantThemes()
Specified by:
getVariantThemes in interface org.tmapi.index.ScopedIndex

getVariants

public java.util.Collection<org.tmapi.core.Variant> getVariants(org.tmapi.core.Topic theme)
Specified by:
getVariants in interface org.tmapi.index.ScopedIndex

getVariants

public java.util.Collection<org.tmapi.core.Variant> getVariants(org.tmapi.core.Topic[] themes,
                                                                boolean arg1)
Specified by:
getVariants in interface org.tmapi.index.ScopedIndex

getAssociationScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getAssociationScopes()
Specified by:
getAssociationScopes in interface de.topicmapslab.majortom.model.index.IScopedIndex

getAssociations

public java.util.Collection<org.tmapi.core.Association> getAssociations(de.topicmapslab.majortom.model.core.IScope scope)
Specified by:
getAssociations in interface de.topicmapslab.majortom.model.index.IScopedIndex

getAssociations

public java.util.Collection<org.tmapi.core.Association> getAssociations(de.topicmapslab.majortom.model.core.IScope... scopes)
Specified by:
getAssociations in interface de.topicmapslab.majortom.model.index.IScopedIndex

getAssociations

public java.util.Collection<org.tmapi.core.Association> getAssociations(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
Specified by:
getAssociations in interface de.topicmapslab.majortom.model.index.IScopedIndex

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(de.topicmapslab.majortom.model.core.IScope scope)
Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.IScopedIndex

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(de.topicmapslab.majortom.model.core.IScope... scopes)
Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.IScopedIndex

getNameScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getNameScopes()
Specified by:
getNameScopes in interface de.topicmapslab.majortom.model.index.IScopedIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(de.topicmapslab.majortom.model.core.IScope scope)
Specified by:
getNames in interface de.topicmapslab.majortom.model.index.IScopedIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(de.topicmapslab.majortom.model.core.IScope... scopes)
Specified by:
getNames in interface de.topicmapslab.majortom.model.index.IScopedIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
Specified by:
getNames in interface de.topicmapslab.majortom.model.index.IScopedIndex

getOccurrenceScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getOccurrenceScopes()
Specified by:
getOccurrenceScopes in interface de.topicmapslab.majortom.model.index.IScopedIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(de.topicmapslab.majortom.model.core.IScope scope)
Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.index.IScopedIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(de.topicmapslab.majortom.model.core.IScope... scopes)
Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.index.IScopedIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.index.IScopedIndex

getScopables

public java.util.Collection<org.tmapi.core.Scoped> getScopables(de.topicmapslab.majortom.model.core.IScope scope)
Specified by:
getScopables in interface de.topicmapslab.majortom.model.index.IScopedIndex

getScopables

public java.util.Collection<org.tmapi.core.Scoped> getScopables(de.topicmapslab.majortom.model.core.IScope... scopes)
Specified by:
getScopables in interface de.topicmapslab.majortom.model.index.IScopedIndex

getScope

public de.topicmapslab.majortom.model.core.IScope getScope(org.tmapi.core.Topic... themes)
Specified by:
getScope in interface de.topicmapslab.majortom.model.index.IScopedIndex

getScope

public de.topicmapslab.majortom.model.core.IScope getScope(java.util.Collection<? extends org.tmapi.core.Topic> themes)
Specified by:
getScope in interface de.topicmapslab.majortom.model.index.IScopedIndex

getScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopes(org.tmapi.core.Topic... themes)
Specified by:
getScopes in interface de.topicmapslab.majortom.model.index.IScopedIndex

getScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopes(org.tmapi.core.Topic[] themes,
                                                                                  boolean arg1)
Specified by:
getScopes in interface de.topicmapslab.majortom.model.index.IScopedIndex

getScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopes(java.util.Collection<org.tmapi.core.Topic> themes,
                                                                                  boolean matchAll)
Specified by:
getScopes in interface de.topicmapslab.majortom.model.index.IScopedIndex

getVariantScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getVariantScopes()
Specified by:
getVariantScopes in interface de.topicmapslab.majortom.model.index.IScopedIndex

getVariants

public java.util.Collection<org.tmapi.core.Variant> getVariants(de.topicmapslab.majortom.model.core.IScope scope)
Specified by:
getVariants in interface de.topicmapslab.majortom.model.index.IScopedIndex

getVariants

public java.util.Collection<org.tmapi.core.Variant> getVariants(de.topicmapslab.majortom.model.core.IScope... scopes)
Specified by:
getVariants in interface de.topicmapslab.majortom.model.index.IScopedIndex

getVariants

public java.util.Collection<org.tmapi.core.Variant> getVariants(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
Specified by:
getVariants in interface de.topicmapslab.majortom.model.index.IScopedIndex

getScopeIdsByTheme

public java.util.Set<java.lang.String> getScopeIdsByTheme(org.tmapi.core.Topic theme)

getScopeIdsByThemes

public java.util.Set<java.lang.String> getScopeIdsByThemes(org.tmapi.core.Topic[] themes,
                                                           boolean matchAll)

getScopeIdsByThemes

public java.util.Set<java.lang.String> getScopeIdsByThemes(java.util.Collection<org.tmapi.core.Topic> themes,
                                                           boolean matchAll)