com.espertech.esper.epl.spec
Class OuterJoinDesc

java.lang.Object
  extended by com.espertech.esper.epl.spec.OuterJoinDesc
All Implemented Interfaces:
MetaDefItem, java.io.Serializable

public class OuterJoinDesc
extends java.lang.Object
implements MetaDefItem, java.io.Serializable

Contains the ON-clause criteria in an outer join.

See Also:
Serialized Form

Field Summary
static OuterJoinDesc[] EMPTY_OUTERJOIN_ARRAY
           
 
Constructor Summary
OuterJoinDesc(OuterJoinType outerJoinType, ExprIdentNode optLeftNode, ExprIdentNode optRightNode, ExprIdentNode[] optAddLeftNode, ExprIdentNode[] optAddRightNode)
          Ctor.
 
Method Summary
static boolean consistsOfAllInnerJoins(OuterJoinDesc[] outerJoinDescList)
           
 ExprIdentNode[] getAdditionalLeftNodes()
          Returns additional properties in the on-clause, if any, that are connected via logical-and
 ExprIdentNode[] getAdditionalRightNodes()
          Returns additional properties in the on-clause, if any, that are connected via logical-and
 ExprIdentNode getOptLeftNode()
          Returns left hand identifier node.
 ExprIdentNode getOptRightNode()
          Returns right hand identifier node.
 OuterJoinType getOuterJoinType()
          Returns the type of outer join (left/right/full).
 ExprNode makeExprNode(ExprEvaluatorContext exprEvaluatorContext)
          Make an expression node that represents the outer join criteria as specified in the on-clause.
static OuterJoinDesc[] toArray(java.util.Collection<OuterJoinDesc> expressions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_OUTERJOIN_ARRAY

public static final OuterJoinDesc[] EMPTY_OUTERJOIN_ARRAY
Constructor Detail

OuterJoinDesc

public OuterJoinDesc(OuterJoinType outerJoinType,
                     ExprIdentNode optLeftNode,
                     ExprIdentNode optRightNode,
                     ExprIdentNode[] optAddLeftNode,
                     ExprIdentNode[] optAddRightNode)
Ctor.

Parameters:
outerJoinType - - type of the outer join
optLeftNode - - left hand identifier node
optRightNode - - right hand identifier node
optAddLeftNode - - additional optional left hand identifier nodes for the on-clause in a logical-and
optAddRightNode - - additional optional right hand identifier nodes for the on-clause in a logical-and
Method Detail

getOuterJoinType

public OuterJoinType getOuterJoinType()
Returns the type of outer join (left/right/full).

Returns:
outer join type

getOptLeftNode

public ExprIdentNode getOptLeftNode()
Returns left hand identifier node.

Returns:
left hand

getOptRightNode

public ExprIdentNode getOptRightNode()
Returns right hand identifier node.

Returns:
right hand

getAdditionalLeftNodes

public ExprIdentNode[] getAdditionalLeftNodes()
Returns additional properties in the on-clause, if any, that are connected via logical-and

Returns:
additional properties

getAdditionalRightNodes

public ExprIdentNode[] getAdditionalRightNodes()
Returns additional properties in the on-clause, if any, that are connected via logical-and

Returns:
additional properties

makeExprNode

public ExprNode makeExprNode(ExprEvaluatorContext exprEvaluatorContext)
Make an expression node that represents the outer join criteria as specified in the on-clause.

Parameters:
exprEvaluatorContext - context for expression evalauation
Returns:
expression node for outer join criteria

consistsOfAllInnerJoins

public static boolean consistsOfAllInnerJoins(OuterJoinDesc[] outerJoinDescList)

toArray

public static OuterJoinDesc[] toArray(java.util.Collection<OuterJoinDesc> expressions)

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