net.esper.client.soda
Class MinProjectionExpression

java.lang.Object
  extended by net.esper.client.soda.ExpressionBase
      extended by net.esper.client.soda.MinProjectionExpression
All Implemented Interfaces:
Serializable, Expression

public class MinProjectionExpression
extends ExpressionBase

Minimum of the (distinct) values returned by an expression.

See Also:
Serialized Form

Constructor Summary
MinProjectionExpression(boolean isDistinct)
          Ctor - for use to create an expression tree, without inner expression
MinProjectionExpression(Expression expression, boolean isDistinct)
          Ctor - adds the expression to project.
 
Method Summary
 boolean isDistinct()
          Returns true if the projection considers distinct values only.
 void setDistinct(boolean distinct)
          Set the distinct flag indicating the projection considers distinct values only.
 void toEQL(StringWriter writer)
          Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.
 
Methods inherited from class net.esper.client.soda.ExpressionBase
addChild, getChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinProjectionExpression

public MinProjectionExpression(boolean isDistinct)
Ctor - for use to create an expression tree, without inner expression

Parameters:
isDistinct - true if distinct

MinProjectionExpression

public MinProjectionExpression(Expression expression,
                               boolean isDistinct)
Ctor - adds the expression to project.

Parameters:
expression - returning values to project
isDistinct - true if distinct
Method Detail

toEQL

public void toEQL(StringWriter writer)
Description copied from interface: Expression
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.

Parameters:
writer - is the output to use

isDistinct

public boolean isDistinct()
Returns true if the projection considers distinct values only.

Returns:
true if distinct

setDistinct

public void setDistinct(boolean distinct)
Set the distinct flag indicating the projection considers distinct values only.

Parameters:
distinct - true for distinct, false for not distinct

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com