com.espertech.esper.client.soda
Class ContextDescriptorHashSegmentedItem

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

public class ContextDescriptorHashSegmentedItem
extends java.lang.Object
implements ContextDescriptor

Context detail for a library-func and filter pair for the hash segmented context.

See Also:
Serialized Form

Constructor Summary
ContextDescriptorHashSegmentedItem()
          Ctor.
ContextDescriptorHashSegmentedItem(Expression hashFunction, Filter filter)
          Ctor.
 
Method Summary
 Filter getFilter()
          Returns the filter.
 Expression getHashFunction()
          Returns the hash function.
 void setFilter(Filter filter)
          Sets the filter.
 void setHashFunction(Expression hashFunction)
          Set the hash function (SingleRowMethodExpression)
 void toEPL(java.io.StringWriter writer, EPStatementFormatter formatter)
          Format as EPL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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(java.io.StringWriter writer,
                  EPStatementFormatter formatter)
Description copied from interface: ContextDescriptor
Format as EPL.

Specified by:
toEPL in interface ContextDescriptor
Parameters:
writer - output
formatter - formatter

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com