net.esper.eql.join.table
Class PropertyIndTableCoerceAll

java.lang.Object
  extended by net.esper.eql.join.table.PropertyIndexedEventTable
      extended by net.esper.eql.join.table.PropertyIndTableCoerceAdd
          extended by net.esper.eql.join.table.PropertyIndTableCoerceAll
All Implemented Interfaces:
EventTable

public class PropertyIndTableCoerceAll
extends PropertyIndTableCoerceAdd

Index that organizes events by the event property values into hash buckets. Based on a HashMap with MultiKeyUntyped keys that store the property values.

Performs coercion of the index keys before storing the keys, and coercion of the lookup keys before lookup.

Takes a list of property names as parameter. Doesn't care which event type the events have as long as the properties exist. If the same event is added twice, the class throws an exception on add.


Field Summary
 
Fields inherited from class net.esper.eql.join.table.PropertyIndexedEventTable
propertyGetters, propertyIndex
 
Constructor Summary
PropertyIndTableCoerceAll(int streamNum, EventType eventType, String[] propertyNames, Class[] coercionType)
          Ctor.
 
Method Summary
 Set<EventBean> lookup(Object[] keys)
          Returns the set of events that have the same property value as the given event.
 
Methods inherited from class net.esper.eql.join.table.PropertyIndTableCoerceAdd
getMultiKey
 
Methods inherited from class net.esper.eql.join.table.PropertyIndexedEventTable
add, remove, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyIndTableCoerceAll

public PropertyIndTableCoerceAll(int streamNum,
                                 EventType eventType,
                                 String[] propertyNames,
                                 Class[] coercionType)
Ctor.

Parameters:
streamNum - is the stream number of the indexed stream
eventType - is the event type of the indexed stream
propertyNames - are the property names to get property values
coercionType - are the classes to coerce indexed values to
Method Detail

lookup

public Set<EventBean> lookup(Object[] keys)
Returns the set of events that have the same property value as the given event.

Overrides:
lookup in class PropertyIndexedEventTable
Parameters:
keys - to compare against
Returns:
set of events with property value, or null if none found (never returns zero-sized set)