Class OccurrenceIndex
java.lang.Object
net.ontopia.topicmaps.impl.utils.AbstractIndex
net.ontopia.topicmaps.impl.utils.BasicIndex
net.ontopia.topicmaps.impl.basic.index.OccurrenceIndex
- All Implemented Interfaces:
IndexIF,OccurrenceIndexIF,EventListenerIF
INTERNAL: The basic dynamic locator index implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex
BasicIndex.EventHandler<K,V>, BasicIndex.TypedPredicate -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CollectionSortedMap<String,OccurrenceIF> protected static final Comparator<String>Fields inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex
handlers -
Method Summary
Modifier and TypeMethodDescriptiongetOccurrences(String value) INTERNAL: Gets all occurrences that have the specified value independent of datatype.getOccurrences(String value, LocatorIF datatype) INTERNAL: Gets all occurrences that have the specified value and datatype.getOccurrences(String value, LocatorIF datatype, TopicIF occurrenceType) INTERNAL: Gets all occurrences that have the specified value, datatype and occurrenceType.getOccurrences(String value, TopicIF occurrenceType) INTERNAL: Gets all occurrences that have the specified value and occurrenceType independent of datatype.getOccurrencesByPrefix(String prefix) INTERNAL: Gets all occurrences of any datatype that have a value starting with the specified prefix.getOccurrencesByPrefix(String prefix, LocatorIF datatype) INTERNAL: Gets all occurrences that have the specifed datatype and a value starting with the specified prefix.INTERNAL: Gets all occurrence values that are greather than or equal to the given 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
-
Field Details
-
occurs
-
STRING_PREFIX_COMPARATOR
-
-
Method Details
-
getOccurrences
Description copied from interface:OccurrenceIndexIFINTERNAL: Gets all occurrences that have the specified value independent of datatype.- Specified by:
getOccurrencesin interfaceOccurrenceIndexIF- Returns:
- A collection of OccurrenceIF objects.
-
getOccurrences
Description copied from interface:OccurrenceIndexIFINTERNAL: Gets all occurrences that have the specified value and occurrenceType independent of datatype.- Specified by:
getOccurrencesin interfaceOccurrenceIndexIF- Returns:
- A collection of OccurrenceIF objects.
-
getOccurrences
Description copied from interface:OccurrenceIndexIFINTERNAL: Gets all occurrences that have the specified value and datatype.- Specified by:
getOccurrencesin interfaceOccurrenceIndexIF- Returns:
- A collection of OccurrenceIF objects.
-
getOccurrences
public Collection<OccurrenceIF> getOccurrences(String value, LocatorIF datatype, TopicIF occurrenceType) Description copied from interface:OccurrenceIndexIFINTERNAL: Gets all occurrences that have the specified value, datatype and occurrenceType.- Specified by:
getOccurrencesin interfaceOccurrenceIndexIF- Returns:
- A collection of OccurrenceIF objects.
-
getOccurrencesByPrefix
Description copied from interface:OccurrenceIndexIFINTERNAL: Gets all occurrences of any datatype that have a value starting with the specified prefix.- Specified by:
getOccurrencesByPrefixin interfaceOccurrenceIndexIF- Returns:
- A collection of OccurrenceIF objects.
-
getOccurrencesByPrefix
Description copied from interface:OccurrenceIndexIFINTERNAL: Gets all occurrences that have the specifed datatype and a value starting with the specified prefix.- Specified by:
getOccurrencesByPrefixin interfaceOccurrenceIndexIF- Returns:
- A collection of OccurrenceIF objects.
-
getValuesGreaterThanOrEqual
Description copied from interface:OccurrenceIndexIFINTERNAL: Gets all occurrence values that are greather than or equal to the given value.- Specified by:
getValuesGreaterThanOrEqualin interfaceOccurrenceIndexIF
-
getValuesSmallerThanOrEqual
Description copied from interface:OccurrenceIndexIFINTERNAL: Gets all occurrence values that are smaller than or equal to the given value.- Specified by:
getValuesSmallerThanOrEqualin interfaceOccurrenceIndexIF
-