de.topicmapslab.majortom.queued.store.index
Class ConcurrentScopedIndex

java.lang.Object
  extended by de.topicmapslab.majortom.queued.store.index.ConcurentIndexImpl<de.topicmapslab.majortom.model.index.IScopedIndex>
      extended by de.topicmapslab.majortom.queued.store.index.ConcurrentScopedIndex
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 ConcurrentScopedIndex
extends ConcurentIndexImpl<de.topicmapslab.majortom.model.index.IScopedIndex>
implements de.topicmapslab.majortom.model.index.IScopedIndex

Author:
Sven Krosse

Field Summary
 
Fields inherited from class de.topicmapslab.majortom.queued.store.index.ConcurentIndexImpl
lock
 
Constructor Summary
ConcurrentScopedIndex(de.topicmapslab.majortom.model.index.IScopedIndex parentIndex, java.util.concurrent.locks.Lock lock)
          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 matchAll)
          
 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 matchAll)
          
 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 matchAll)
          
 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.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(org.tmapi.core.Topic... themes)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopes(org.tmapi.core.Topic[] themes, boolean matchAll)
          
 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 matchAll)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getVariantScopes()
          
 java.util.Collection<org.tmapi.core.Topic> getVariantThemes()
          
 void open()
          
 
Methods inherited from class de.topicmapslab.majortom.queued.store.index.ConcurentIndexImpl
clear, close, getParentIndex, isAutoUpdated, isOpen, 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, reindex
 

Constructor Detail

ConcurrentScopedIndex

public ConcurrentScopedIndex(de.topicmapslab.majortom.model.index.IScopedIndex parentIndex,
                             java.util.concurrent.locks.Lock lock)
constructor

Parameters:
parentIndex - the parent index
lock - the lock
Method Detail

open

public void open()

Specified by:
open in interface org.tmapi.index.Index
Overrides:
open in class ConcurentIndexImpl<de.topicmapslab.majortom.model.index.IScopedIndex>

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 matchAll)

Specified by:
getAssociations in interface org.tmapi.index.ScopedIndex

getAssociationThemes

public java.util.Collection<org.tmapi.core.Topic> getAssociationThemes()

Specified by:
getAssociationThemes 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 matchAll)

Specified by:
getOccurrences 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

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 matchAll)

Specified by:
getNames 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

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 matchAll)

Specified by:
getVariants 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

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 matchAll)

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

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

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

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

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

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