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

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

public class RedisIdentityIndex
extends IndexImpl<RedisTopicMapStore>
implements de.topicmapslab.majortom.model.index.IIdentityIndex


Field Summary
private static java.lang.String INDEX_IS_CLOSED
           
private static java.lang.String NULL_IS_AN_INVALID_LOCATOR
           
private static java.lang.String NULL_IS_AN_INVALID_REGEX
           
private  RedisHandler redis
           
 
Constructor Summary
RedisIdentityIndex(RedisTopicMapStore store)
           
 
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 regex)
           
 java.util.Collection<org.tmapi.core.Construct> getConstructsByItemIdentifier(java.util.regex.Pattern regExp)
           
 java.util.Collection<org.tmapi.core.Construct> getConstructsByItemIdentifier(java.lang.String regex)
           
 java.util.Collection<java.lang.String> getItemIdentifierKeys()
           
 java.util.Collection<org.tmapi.core.Locator> getItemIdentifiers()
           
 java.util.Collection<java.lang.String> getSubjectIdentifierKeys()
           
 java.util.Collection<org.tmapi.core.Locator> getSubjectIdentifiers()
           
 java.util.Collection<java.lang.String> getSubjectLocatorKeys()
           
 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 regex)
           
 java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectLocator(java.util.regex.Pattern regExp)
           
 java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectLocator(java.lang.String regex)
           
 
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

NULL_IS_AN_INVALID_REGEX

private static final java.lang.String NULL_IS_AN_INVALID_REGEX
See Also:
Constant Field Values

NULL_IS_AN_INVALID_LOCATOR

private static final java.lang.String NULL_IS_AN_INVALID_LOCATOR
See Also:
Constant Field Values

INDEX_IS_CLOSED

private static final java.lang.String INDEX_IS_CLOSED
See Also:
Constant Field Values

redis

private RedisHandler redis
Constructor Detail

RedisIdentityIndex

public RedisIdentityIndex(RedisTopicMapStore store)
Method Detail

getItemIdentifiers

public java.util.Collection<org.tmapi.core.Locator> getItemIdentifiers()
Specified by:
getItemIdentifiers in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getItemIdentifierKeys

public java.util.Collection<java.lang.String> getItemIdentifierKeys()

getSubjectIdentifiers

public java.util.Collection<org.tmapi.core.Locator> getSubjectIdentifiers()
Specified by:
getSubjectIdentifiers in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getSubjectIdentifierKeys

public java.util.Collection<java.lang.String> getSubjectIdentifierKeys()

getSubjectLocators

public java.util.Collection<org.tmapi.core.Locator> getSubjectLocators()
Specified by:
getSubjectLocators in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getSubjectLocatorKeys

public java.util.Collection<java.lang.String> getSubjectLocatorKeys()

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