Class PropertyHashedEventTableUnadorned
java.lang.Object
com.espertech.esper.common.internal.epl.index.hash.PropertyHashedEventTable
com.espertech.esper.common.internal.epl.index.hash.PropertyHashedEventTableUnadorned
- All Implemented Interfaces:
EventTable
,Iterable<EventBean>
-
Field Summary
Fields inherited from class com.espertech.esper.common.internal.epl.index.hash.PropertyHashedEventTable
factory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(EventBean theEvent, ExprEvaluatorContext exprEvaluatorContext) Add event to table.void
clear()
Clear out index.void
destroy()
Destroy index.getIndex()
Return the index object itself, or an object-array for multiple index structures.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
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<?>
boolean
isEmpty()
Returns true if the index is definitely empty, or false if is not definitely empty but we can not certain.iterator()
Returns an iterator over events in the table.Returns the set of events that have the same property value as the given event.Same as lookup except always returns a copy of the setvoid
remove
(EventBean theEvent, ExprEvaluatorContext exprEvaluatorContext) Remove event from table.Methods inherited from class com.espertech.esper.common.internal.epl.index.hash.PropertyHashedEventTable
add, addRemove, getKey, getMultiKeyTransform, getOrganization, remove, toQueryPlan, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
propertyIndex
-
-
Constructor Details
-
PropertyHashedEventTableUnadorned
-
-
Method Details
-
lookup
Returns the set of events that have the same property value as the given event.- Specified by:
lookup
in classPropertyHashedEventTable
- Parameters:
key
- to compare against- Returns:
- set of events with property value, or null if none found (never returns zero-sized set)
-
lookupFAF
Same as lookup except always returns a copy of the set- Specified by:
lookupFAF
in classPropertyHashedEventTable
- Parameters:
key
- key- Returns:
- copy
-
add
Description copied from interface:EventTable
Add event to table.- Parameters:
theEvent
- to addexprEvaluatorContext
- evaluator context
-
remove
Description copied from interface:EventTable
Remove event from table.- Parameters:
theEvent
- to removeexprEvaluatorContext
- evaluator context
-
isEmpty
public boolean isEmpty()Description copied from interface:EventTable
Returns true if the index is definitely empty, or false if is not definitely empty but we can not certain.- Returns:
- true for definitely empty index, false for there-may-be-rows and please-check-by-iterating
-
iterator
Description copied from interface:EventTable
Returns an iterator over events in the table. Not required to be implemented for all indexes. Full table scans and providers that have easy access to an iterator may implement.- Returns:
- table iterator
-
clear
public void clear()Description copied from interface:EventTable
Clear out index. -
destroy
public void destroy()Description copied from interface:EventTable
Destroy index. -
getNumberOfEvents
Description copied from interface:EventTable
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.- Returns:
- number of events
-
getNumKeys
public int getNumKeys()Description copied from interface:EventTable
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.The number returned can be an estimate and may not be accurate.
- Returns:
- number of keys
-
getIndex
Description copied from interface:EventTable
Return the index object itself, or an object-array for multiple index structures.May return null if the information is not readily available, i.e. externally maintained index
- Returns:
- index object
-
getProviderClass
-