public class PropertyIndexedEventTableSingleUnadorned extends PropertyIndexedEventTableSingle
MultiKeyUntyped
keys that store the property values.Modifier and Type | Field and Description |
---|---|
protected Map<Object,Set<EventBean>> |
propertyIndex |
organization, propertyGetter
Constructor and Description |
---|
PropertyIndexedEventTableSingleUnadorned(EventPropertyGetter propertyGetter,
EventTableOrganization organization) |
Modifier and Type | Method and Description |
---|---|
void |
add(EventBean theEvent,
ExprEvaluatorContext exprEvaluatorContext)
Add event to table.
|
void |
clear()
Clear out index.
|
void |
destroy()
Destroy index.
|
Object |
getIndex()
Return the index object itself, or an object-array for multiple index structures.
|
Integer |
getNumberOfEvents()
If the number of events is readily available, an implementation will return that number
or it may return null to indicate that the count is not readily available.
|
int |
getNumKeys()
If the index retains events using some key-based organization this returns the number of keys,
and may return -1 to indicate that either the number of keys is not available or
costly to obtain.
|
Class |
getProviderClass() |
boolean |
isEmpty()
Returns true if the index is definitely empty,
or false if is not definitely empty but we can not certain.
|
Iterator<EventBean> |
iterator()
Returns an iterator over events in the table.
|
Set<EventBean> |
lookup(Object key)
Returns the set of events that have the same property value as the given event.
|
void |
remove(EventBean theEvent,
ExprEvaluatorContext exprEvaluatorContext)
Remove event from table.
|
add, addRemove, getKey, getOrganization, remove, toQueryPlan, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public PropertyIndexedEventTableSingleUnadorned(EventPropertyGetter propertyGetter, EventTableOrganization organization)
public Set<EventBean> lookup(Object key)
lookup
in class PropertyIndexedEventTableSingle
key
- to compare againstpublic void add(EventBean theEvent, ExprEvaluatorContext exprEvaluatorContext)
EventTable
theEvent
- to addexprEvaluatorContext
- evaluator contextpublic void remove(EventBean theEvent, ExprEvaluatorContext exprEvaluatorContext)
EventTable
theEvent
- to removeexprEvaluatorContext
- evaluator contextpublic boolean isEmpty()
EventTable
public Iterator<EventBean> iterator()
EventTable
public void clear()
EventTable
public void destroy()
EventTable
public Integer getNumberOfEvents()
EventTable
public int getNumKeys()
EventTable
The number returned can be an estimate and may not be accurate.
public Object getIndex()
EventTable
May return null if the information is not readily available, i.e. externally maintained index
public Class getProviderClass()