net.esper.client.soda
Class MaxProjectionExpression

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

public class MaxProjectionExpression
extends ExpressionBase

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

See Also:
Serialized Form

Constructor Summary
MaxProjectionExpression(boolean isDistinct)
          Ctor - for use to create an expression tree, without inner expression
MaxProjectionExpression(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

MaxProjectionExpression

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

Parameters:
isDistinct - true if distinct

MaxProjectionExpression

public MaxProjectionExpression(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