com.espertech.esper.epl.join.plan
Class TwoStreamQueryPlanBuilder

java.lang.Object
  extended by com.espertech.esper.epl.join.plan.TwoStreamQueryPlanBuilder

public class TwoStreamQueryPlanBuilder
extends Object

Builds a query plan for the simple 2-stream scenario.


Constructor Summary
TwoStreamQueryPlanBuilder()
           
 
Method Summary
static QueryPlan build(EventType[] typesPerStream, QueryGraph queryGraph, OuterJoinType optionalOuterJoinType)
          Build query plan.
protected static Class[] getCoercionTypes(EventType[] typesPerStream, int lookupStream, int indexedStream, String[] keyProps, String[] indexProps)
          Returns null if no coercion is required, or an array of classes for use in coercing the lookup keys and index keys into a common type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwoStreamQueryPlanBuilder

public TwoStreamQueryPlanBuilder()
Method Detail

build

public static QueryPlan build(EventType[] typesPerStream,
                              QueryGraph queryGraph,
                              OuterJoinType optionalOuterJoinType)
Build query plan.

Parameters:
queryGraph - - navigability info
optionalOuterJoinType - - outer join type, null if not an outer join
typesPerStream - - event types for each stream
Returns:
query plan

getCoercionTypes

protected static Class[] getCoercionTypes(EventType[] typesPerStream,
                                          int lookupStream,
                                          int indexedStream,
                                          String[] keyProps,
                                          String[] indexProps)
Returns null if no coercion is required, or an array of classes for use in coercing the lookup keys and index keys into a common type.

Parameters:
typesPerStream - is the event types for each stream
lookupStream - is the stream looked up from
indexedStream - is the indexed stream
keyProps - is the properties to use to look up
indexProps - is the properties to index on
Returns:
coercion types, or null if none required

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