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>

public class PropertyHashedEventTableUnadorned extends PropertyHashedEventTable
  • Field Details

  • Constructor Details

  • Method Details

    • lookup

      public Set<EventBean> lookup(Object key)
      Returns the set of events that have the same property value as the given event.
      Specified by:
      lookup in class PropertyHashedEventTable
      Parameters:
      key - to compare against
      Returns:
      set of events with property value, or null if none found (never returns zero-sized set)
    • lookupFAF

      public Set<EventBean> lookupFAF(Object key)
      Same as lookup except always returns a copy of the set
      Specified by:
      lookupFAF in class PropertyHashedEventTable
      Parameters:
      key - key
      Returns:
      copy
    • add

      public void add(EventBean theEvent, ExprEvaluatorContext exprEvaluatorContext)
      Description copied from interface: EventTable
      Add event to table.
      Parameters:
      theEvent - to add
      exprEvaluatorContext - evaluator context
    • remove

      public void remove(EventBean theEvent, ExprEvaluatorContext exprEvaluatorContext)
      Description copied from interface: EventTable
      Remove event from table.
      Parameters:
      theEvent - to remove
      exprEvaluatorContext - 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

      public Iterator<EventBean> 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

      public Integer 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

      public Object 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

      public Class<?> getProviderClass()