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

java.lang.Object
  extended by de.topicmapslab.majortom.queued.store.index.ConcurentIndexImpl<de.topicmapslab.majortom.model.index.ITypeInstanceIndex>
      extended by de.topicmapslab.majortom.queued.store.index.ConcurrentTypeInstanceIndex
All Implemented Interfaces:
de.topicmapslab.majortom.model.index.IIndex, de.topicmapslab.majortom.model.index.ITypeInstanceIndex, org.tmapi.index.Index, org.tmapi.index.TypeInstanceIndex
Direct Known Subclasses:
ConcurrentTransitiveTypeInstanceIndex

public class ConcurrentTypeInstanceIndex
extends ConcurentIndexImpl<de.topicmapslab.majortom.model.index.ITypeInstanceIndex>
implements de.topicmapslab.majortom.model.index.ITypeInstanceIndex

Author:
Sven Krosse

Field Summary
 
Fields inherited from class de.topicmapslab.majortom.queued.store.index.ConcurentIndexImpl
lock
 
Constructor Summary
ConcurrentTypeInstanceIndex(de.topicmapslab.majortom.model.index.ITypeInstanceIndex parentIndex, java.util.concurrent.locks.Lock lock)
           
 
Method Summary
 java.util.Collection<org.tmapi.core.Association> getAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 java.util.Collection<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic... types)
          
 java.util.Collection<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic type)
          
 java.util.Collection<org.tmapi.core.Topic> getAssociationTypes()
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic... types)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic type)
          
 java.util.Collection<org.tmapi.core.Topic> getCharacteristicTypes()
          
 java.util.Collection<org.tmapi.core.Name> getNames(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic... types)
          
 java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic type)
          
 java.util.Collection<org.tmapi.core.Topic> getNameTypes()
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic... types)
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic type)
          
 java.util.Collection<org.tmapi.core.Topic> getOccurrenceTypes()
          
 java.util.Collection<org.tmapi.core.Role> getRoles(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 java.util.Collection<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic... types)
          
 java.util.Collection<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic type)
          
 java.util.Collection<org.tmapi.core.Topic> getRoleTypes()
          
 java.util.Collection<org.tmapi.core.Topic> getTopics(java.util.Collection<org.tmapi.core.Topic> types)
          
 java.util.Collection<org.tmapi.core.Topic> getTopics(java.util.Collection<org.tmapi.core.Topic> types, boolean all)
          
 java.util.Collection<org.tmapi.core.Topic> getTopics(org.tmapi.core.Topic... types)
          
 java.util.Collection<org.tmapi.core.Topic> getTopics(org.tmapi.core.Topic type)
          
 java.util.Collection<org.tmapi.core.Topic> getTopics(org.tmapi.core.Topic[] types, boolean matchAll)
          
 java.util.Collection<org.tmapi.core.Topic> getTopicTypes()
          
 
Methods inherited from class de.topicmapslab.majortom.queued.store.index.ConcurentIndexImpl
clear, close, getParentIndex, 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
 

Constructor Detail

ConcurrentTypeInstanceIndex

public ConcurrentTypeInstanceIndex(de.topicmapslab.majortom.model.index.ITypeInstanceIndex parentIndex,
                                   java.util.concurrent.locks.Lock lock)
Parameters:
parentIndex -
lock -
Method Detail

getTopics

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

Specified by:
getTopics in interface org.tmapi.index.TypeInstanceIndex

getTopics

public java.util.Collection<org.tmapi.core.Topic> getTopics(org.tmapi.core.Topic[] types,
                                                            boolean matchAll)

Specified by:
getTopics in interface org.tmapi.index.TypeInstanceIndex

getTopicTypes

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

Specified by:
getTopicTypes in interface org.tmapi.index.TypeInstanceIndex

getAssociations

public java.util.Collection<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic type)

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

getAssociationTypes

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

Specified by:
getAssociationTypes in interface org.tmapi.index.TypeInstanceIndex

getRoles

public java.util.Collection<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic type)

Specified by:
getRoles in interface org.tmapi.index.TypeInstanceIndex

getRoleTypes

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

Specified by:
getRoleTypes in interface org.tmapi.index.TypeInstanceIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic type)

Specified by:
getOccurrences in interface org.tmapi.index.TypeInstanceIndex

getOccurrenceTypes

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

Specified by:
getOccurrenceTypes in interface org.tmapi.index.TypeInstanceIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic type)

Specified by:
getNames in interface org.tmapi.index.TypeInstanceIndex

getNameTypes

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

Specified by:
getNameTypes in interface org.tmapi.index.TypeInstanceIndex

getTopics

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

Specified by:
getTopics in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex

getTopics

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

Specified by:
getTopics in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex

getTopics

public java.util.Collection<org.tmapi.core.Topic> getTopics(java.util.Collection<org.tmapi.core.Topic> types,
                                                            boolean all)

Specified by:
getTopics in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex

getAssociations

public java.util.Collection<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic... types)

Specified by:
getAssociations in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex

getAssociations

public java.util.Collection<org.tmapi.core.Association> getAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types)

Specified by:
getAssociations in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex

getRoles

public java.util.Collection<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic... types)

Specified by:
getRoles in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex

getRoles

public java.util.Collection<org.tmapi.core.Role> getRoles(java.util.Collection<? extends org.tmapi.core.Topic> types)

Specified by:
getRoles in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex

getCharacteristicTypes

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

Specified by:
getCharacteristicTypes in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic type)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic... types)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic... types)

Specified by:
getNames in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(java.util.Collection<? extends org.tmapi.core.Topic> types)

Specified by:
getNames in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic... types)

Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types)

Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex