Class ContextDescriptorHashSegmentedItem

java.lang.Object
com.espertech.esper.common.client.soda.ContextDescriptorHashSegmentedItem
All Implemented Interfaces:
ContextDescriptor, Serializable

public class ContextDescriptorHashSegmentedItem extends Object implements ContextDescriptor
Context detail for a library-func and filter pair for the hash segmented context.
See Also:
  • Constructor Details

    • ContextDescriptorHashSegmentedItem

      public ContextDescriptorHashSegmentedItem()
      Ctor.
    • ContextDescriptorHashSegmentedItem

      public ContextDescriptorHashSegmentedItem(Expression hashFunction, Filter filter)
      Ctor.
      Parameters:
      hashFunction - the hash function, expecting SingleRowMethodExpression
      filter - the event types to apply to
  • Method Details

    • getFilter

      public Filter getFilter()
      Returns the filter.
      Returns:
      filter
    • setFilter

      public void setFilter(Filter filter)
      Sets the filter.
      Parameters:
      filter - filter
    • getHashFunction

      public Expression getHashFunction()
      Returns the hash function.
      Returns:
      hash function
    • setHashFunction

      public void setHashFunction(Expression hashFunction)
      Set the hash function (SingleRowMethodExpression)
      Parameters:
      hashFunction - to set
    • toEPL

      public void toEPL(StringWriter writer, EPStatementFormatter formatter)
      Description copied from interface: ContextDescriptor
      Format as EPL.
      Specified by:
      toEPL in interface ContextDescriptor
      Parameters:
      writer - output
      formatter - formatter