public class OccurrenceIndex extends BasicIndex implements OccurrenceIndexIF
BasicIndex.EventHandler<K,V>, BasicIndex.TypedPredicate
Modifier and Type | Field and Description |
---|---|
protected CollectionSortedMap<String,OccurrenceIF> |
occurs |
protected static Comparator<String> |
STRING_PREFIX_COMPARATOR |
handlers
Modifier and Type | Method and Description |
---|---|
Collection<OccurrenceIF> |
getOccurrences(String value)
INTERNAL: Gets all occurrences that have the specified value
independent of datatype.
|
Collection<OccurrenceIF> |
getOccurrences(String value,
LocatorIF datatype)
INTERNAL: Gets all occurrences that have the specified value and
datatype.
|
Collection<OccurrenceIF> |
getOccurrences(String value,
LocatorIF datatype,
TopicIF occurrenceType)
INTERNAL: Gets all occurrences that have the specified value,
datatype and occurrenceType.
|
Collection<OccurrenceIF> |
getOccurrences(String value,
TopicIF occurrenceType)
INTERNAL: Gets all occurrences that have the specified value
and occurrenceType independent of datatype.
|
Collection<OccurrenceIF> |
getOccurrencesByPrefix(String prefix)
INTERNAL: Gets all occurrences of any datatype that have a value
starting with the specified prefix.
|
Collection<OccurrenceIF> |
getOccurrencesByPrefix(String prefix,
LocatorIF datatype)
INTERNAL: Gets all occurrences that have the specifed datatype
and a value starting with the specified prefix.
|
Iterator<String> |
getValuesGreaterThanOrEqual(String value)
INTERNAL: Gets all occurrence values that are greather than or
equal to the given value.
|
Iterator<String> |
getValuesSmallerThanOrEqual(String value)
INTERNAL: Gets all occurrence values that are smaller than or
equal to the given value.
|
getIndex, processEvent
protected CollectionSortedMap<String,OccurrenceIF> occurs
protected static final Comparator<String> STRING_PREFIX_COMPARATOR
public Collection<OccurrenceIF> getOccurrences(String value)
OccurrenceIndexIF
getOccurrences
in interface OccurrenceIndexIF
public Collection<OccurrenceIF> getOccurrences(String value, TopicIF occurrenceType)
OccurrenceIndexIF
getOccurrences
in interface OccurrenceIndexIF
public Collection<OccurrenceIF> getOccurrences(String value, LocatorIF datatype)
OccurrenceIndexIF
getOccurrences
in interface OccurrenceIndexIF
public Collection<OccurrenceIF> getOccurrences(String value, LocatorIF datatype, TopicIF occurrenceType)
OccurrenceIndexIF
getOccurrences
in interface OccurrenceIndexIF
public Collection<OccurrenceIF> getOccurrencesByPrefix(String prefix)
OccurrenceIndexIF
getOccurrencesByPrefix
in interface OccurrenceIndexIF
public Collection<OccurrenceIF> getOccurrencesByPrefix(String prefix, LocatorIF datatype)
OccurrenceIndexIF
getOccurrencesByPrefix
in interface OccurrenceIndexIF
public Iterator<String> getValuesGreaterThanOrEqual(String value)
OccurrenceIndexIF
getValuesGreaterThanOrEqual
in interface OccurrenceIndexIF
public Iterator<String> getValuesSmallerThanOrEqual(String value)
OccurrenceIndexIF
getValuesSmallerThanOrEqual
in interface OccurrenceIndexIF