net.ontopia.topicmaps.impl.basic.index
Class OccurrenceIndex

java.lang.Object
  extended by net.ontopia.topicmaps.impl.utils.AbstractIndex
      extended by net.ontopia.topicmaps.impl.utils.BasicIndex
          extended by net.ontopia.topicmaps.impl.basic.index.OccurrenceIndex
All Implemented Interfaces:
IndexIF, OccurrenceIndexIF, EventListenerIF

public class OccurrenceIndex
extends BasicIndex
implements OccurrenceIndexIF

INTERNAL: The basic dynamic locator index implementation.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex
BasicIndex.EventHandler
 
Field Summary
protected  CollectionSortedMap occurs
           
protected static java.util.Comparator STRING_PREFIX_COMPARATOR
           
 
Fields inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex
handlers
 
Method Summary
 java.util.Collection getOccurrences(java.lang.String value)
          INTERNAL: Gets all occurrences that have the specified value independent of datatype.
 java.util.Collection getOccurrences(java.lang.String value, LocatorIF datatype)
          INTERNAL: Gets all occurrences that have the specified value and datatype.
 java.util.Collection getOccurrencesByPrefix(java.lang.String prefix)
          INTERNAL: Gets all occurrences of any datatype that have a value starting with the specified prefix.
 java.util.Collection getOccurrencesByPrefix(java.lang.String prefix, LocatorIF datatype)
          INTERNAL: Gets all occurrences that have the specifed datatype and a value starting with the specified prefix.
 java.util.Iterator getValuesGreaterThanOrEqual(java.lang.String value)
          INTERNAL: Gets all occurrence values that are greather than or equal to the given value.
 java.util.Iterator getValuesSmallerThanOrEqual(java.lang.String value)
          INTERNAL: Gets all occurrence values that are smaller than or equal to the given value.
 
Methods inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex
getIndex, processEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

occurs

protected CollectionSortedMap occurs

STRING_PREFIX_COMPARATOR

protected static final java.util.Comparator STRING_PREFIX_COMPARATOR
Method Detail

getOccurrences

public java.util.Collection getOccurrences(java.lang.String value)
Description copied from interface: OccurrenceIndexIF
INTERNAL: Gets all occurrences that have the specified value independent of datatype.

Specified by:
getOccurrences in interface OccurrenceIndexIF
Returns:
A collection of OccurrenceIF objects.

getOccurrences

public java.util.Collection getOccurrences(java.lang.String value,
                                           LocatorIF datatype)
Description copied from interface: OccurrenceIndexIF
INTERNAL: Gets all occurrences that have the specified value and datatype.

Specified by:
getOccurrences in interface OccurrenceIndexIF
Returns:
A collection of OccurrenceIF objects.

getOccurrencesByPrefix

public java.util.Collection getOccurrencesByPrefix(java.lang.String prefix)
Description copied from interface: OccurrenceIndexIF
INTERNAL: Gets all occurrences of any datatype that have a value starting with the specified prefix.

Specified by:
getOccurrencesByPrefix in interface OccurrenceIndexIF
Returns:
A collection of OccurrenceIF objects.

getOccurrencesByPrefix

public java.util.Collection getOccurrencesByPrefix(java.lang.String prefix,
                                                   LocatorIF datatype)
Description copied from interface: OccurrenceIndexIF
INTERNAL: Gets all occurrences that have the specifed datatype and a value starting with the specified prefix.

Specified by:
getOccurrencesByPrefix in interface OccurrenceIndexIF
Returns:
A collection of OccurrenceIF objects.

getValuesGreaterThanOrEqual

public java.util.Iterator getValuesGreaterThanOrEqual(java.lang.String value)
Description copied from interface: OccurrenceIndexIF
INTERNAL: Gets all occurrence values that are greather than or equal to the given value.

Specified by:
getValuesGreaterThanOrEqual in interface OccurrenceIndexIF

getValuesSmallerThanOrEqual

public java.util.Iterator getValuesSmallerThanOrEqual(java.lang.String value)
Description copied from interface: OccurrenceIndexIF
INTERNAL: Gets all occurrence values that are smaller than or equal to the given value.

Specified by:
getValuesSmallerThanOrEqual in interface OccurrenceIndexIF


Copyright © 2000-2012 Ontopia.