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

java.lang.Object
  extended by de.topicmapslab.majortom.queued.store.index.ConcurentIndexImpl<de.topicmapslab.majortom.model.index.IIdentityIndex>
      extended by de.topicmapslab.majortom.queued.store.index.ConcurrentIdentityIndex
All Implemented Interfaces:
de.topicmapslab.majortom.model.index.IIdentityIndex, de.topicmapslab.majortom.model.index.IIndex, org.tmapi.index.Index

public class ConcurrentIdentityIndex
extends ConcurentIndexImpl<de.topicmapslab.majortom.model.index.IIdentityIndex>
implements de.topicmapslab.majortom.model.index.IIdentityIndex

Author:
Sven Krosse

Field Summary
 
Fields inherited from class de.topicmapslab.majortom.queued.store.index.ConcurentIndexImpl
lock
 
Constructor Summary
ConcurrentIdentityIndex(de.topicmapslab.majortom.model.index.IIdentityIndex parentIndex, java.util.concurrent.locks.Lock lock)
           
 
Method Summary
 boolean existsIdentifier(org.tmapi.core.Locator locator)
          
 boolean existsIdentifier(java.lang.String reference)
          
 boolean existsItemIdentifier(org.tmapi.core.Locator locator)
          
 boolean existsItemIdentifier(java.lang.String reference)
          
 boolean existsSubjectIdentifier(org.tmapi.core.Locator locator)
          
 boolean existsSubjectIdentifier(java.lang.String reference)
          
 boolean existsSubjectLocator(org.tmapi.core.Locator locator)
          
 boolean existsSubjectLocator(java.lang.String reference)
          
 org.tmapi.core.Construct getConstructByItemIdentifier(org.tmapi.core.Locator locator)
          
 org.tmapi.core.Construct getConstructByItemIdentifier(java.lang.String reference)
          
 java.util.Collection<org.tmapi.core.Construct> getConstructsByIdentifier(java.util.regex.Pattern regExp)
          
 java.util.Collection<org.tmapi.core.Construct> getConstructsByIdentifier(java.lang.String regExp)
          
 java.util.Collection<org.tmapi.core.Construct> getConstructsByItemIdentifier(java.util.regex.Pattern regExp)
          
 java.util.Collection<org.tmapi.core.Construct> getConstructsByItemIdentifier(java.lang.String regExp)
          
 java.util.Collection<org.tmapi.core.Locator> getItemIdentifiers()
          
 java.util.Collection<org.tmapi.core.Locator> getSubjectIdentifiers()
          
 java.util.Collection<org.tmapi.core.Locator> getSubjectLocators()
          
 org.tmapi.core.Topic getTopicBySubjectIdentifier(org.tmapi.core.Locator locator)
          
 org.tmapi.core.Topic getTopicBySubjectIdentifier(java.lang.String reference)
          
 org.tmapi.core.Topic getTopicBySubjectLocator(org.tmapi.core.Locator locator)
          
 org.tmapi.core.Topic getTopicBySubjectLocator(java.lang.String reference)
          
 java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectIdentifier(java.util.regex.Pattern regExp)
          
 java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectIdentifier(java.lang.String regExp)
          
 java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectLocator(java.util.regex.Pattern regExp)
          
 java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectLocator(java.lang.String regExp)
          
 
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

ConcurrentIdentityIndex

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

getItemIdentifiers

public java.util.Collection<org.tmapi.core.Locator> getItemIdentifiers()

Specified by:
getItemIdentifiers in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getSubjectIdentifiers

public java.util.Collection<org.tmapi.core.Locator> getSubjectIdentifiers()

Specified by:
getSubjectIdentifiers in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getSubjectLocators

public java.util.Collection<org.tmapi.core.Locator> getSubjectLocators()

Specified by:
getSubjectLocators in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getConstructByItemIdentifier

public org.tmapi.core.Construct getConstructByItemIdentifier(java.lang.String reference)
                                                      throws org.tmapi.core.MalformedIRIException

Specified by:
getConstructByItemIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex
Throws:
org.tmapi.core.MalformedIRIException

getConstructByItemIdentifier

public org.tmapi.core.Construct getConstructByItemIdentifier(org.tmapi.core.Locator locator)

Specified by:
getConstructByItemIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getConstructsByItemIdentifier

public java.util.Collection<org.tmapi.core.Construct> getConstructsByItemIdentifier(java.lang.String regExp)

Specified by:
getConstructsByItemIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getConstructsByItemIdentifier

public java.util.Collection<org.tmapi.core.Construct> getConstructsByItemIdentifier(java.util.regex.Pattern regExp)

Specified by:
getConstructsByItemIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getTopicBySubjectIdentifier

public org.tmapi.core.Topic getTopicBySubjectIdentifier(java.lang.String reference)
                                                 throws org.tmapi.core.MalformedIRIException

Specified by:
getTopicBySubjectIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex
Throws:
org.tmapi.core.MalformedIRIException

getTopicBySubjectIdentifier

public org.tmapi.core.Topic getTopicBySubjectIdentifier(org.tmapi.core.Locator locator)

Specified by:
getTopicBySubjectIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getTopicsBySubjectIdentifier

public java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectIdentifier(java.lang.String regExp)

Specified by:
getTopicsBySubjectIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getTopicsBySubjectIdentifier

public java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectIdentifier(java.util.regex.Pattern regExp)

Specified by:
getTopicsBySubjectIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getTopicBySubjectLocator

public org.tmapi.core.Topic getTopicBySubjectLocator(java.lang.String reference)
                                              throws org.tmapi.core.MalformedIRIException

Specified by:
getTopicBySubjectLocator in interface de.topicmapslab.majortom.model.index.IIdentityIndex
Throws:
org.tmapi.core.MalformedIRIException

getTopicBySubjectLocator

public org.tmapi.core.Topic getTopicBySubjectLocator(org.tmapi.core.Locator locator)

Specified by:
getTopicBySubjectLocator in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getTopicsBySubjectLocator

public java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectLocator(java.lang.String regExp)

Specified by:
getTopicsBySubjectLocator in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getTopicsBySubjectLocator

public java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectLocator(java.util.regex.Pattern regExp)

Specified by:
getTopicsBySubjectLocator in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getConstructsByIdentifier

public java.util.Collection<org.tmapi.core.Construct> getConstructsByIdentifier(java.lang.String regExp)

Specified by:
getConstructsByIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getConstructsByIdentifier

public java.util.Collection<org.tmapi.core.Construct> getConstructsByIdentifier(java.util.regex.Pattern regExp)

Specified by:
getConstructsByIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

existsSubjectIdentifier

public boolean existsSubjectIdentifier(java.lang.String reference)

Specified by:
existsSubjectIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

existsSubjectIdentifier

public boolean existsSubjectIdentifier(org.tmapi.core.Locator locator)

Specified by:
existsSubjectIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

existsSubjectLocator

public boolean existsSubjectLocator(java.lang.String reference)

Specified by:
existsSubjectLocator in interface de.topicmapslab.majortom.model.index.IIdentityIndex

existsSubjectLocator

public boolean existsSubjectLocator(org.tmapi.core.Locator locator)

Specified by:
existsSubjectLocator in interface de.topicmapslab.majortom.model.index.IIdentityIndex

existsItemIdentifier

public boolean existsItemIdentifier(java.lang.String reference)

Specified by:
existsItemIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

existsItemIdentifier

public boolean existsItemIdentifier(org.tmapi.core.Locator locator)

Specified by:
existsItemIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

existsIdentifier

public boolean existsIdentifier(java.lang.String reference)

Specified by:
existsIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

existsIdentifier

public boolean existsIdentifier(org.tmapi.core.Locator locator)

Specified by:
existsIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex