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

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

public class CoercionUtil
extends java.lang.Object


Constructor Summary
CoercionUtil()
           
 
Method Summary
static java.lang.Class getCoercionTypeRange(EventType indexedType, java.lang.String indexedProp, SubordPropRangeKey rangeKey)
           
static java.lang.Class getCoercionTypeRangeIn(java.lang.Class valuePropType, ExprNode exprStart, ExprNode exprEnd)
           
static CoercionDesc getCoercionTypesHash(EventType[] typesPerStream, int lookupStream, int indexedStream, java.util.List<QueryGraphValueEntryHashKeyed> keyProps, java.lang.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.
static CoercionDesc getCoercionTypesHash(EventType viewableEventType, java.lang.String[] indexProps, java.util.List<SubordPropHashKey> hashKeys)
           
static CoercionDesc getCoercionTypesRange(EventType[] typesPerStream, int indexedStream, java.lang.String[] indexedProp, java.util.List<QueryGraphValueEntryRange> rangeEntries)
           
static CoercionDesc getCoercionTypesRange(EventType viewableEventType, java.util.Map<java.lang.String,SubordPropRangeKey> rangeProps, EventType[] typesPerStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoercionUtil

public CoercionUtil()
Method Detail

getCoercionTypesRange

public static CoercionDesc getCoercionTypesRange(EventType[] typesPerStream,
                                                 int indexedStream,
                                                 java.lang.String[] indexedProp,
                                                 java.util.List<QueryGraphValueEntryRange> rangeEntries)

getCoercionTypesHash

public static CoercionDesc getCoercionTypesHash(EventType[] typesPerStream,
                                                int lookupStream,
                                                int indexedStream,
                                                java.util.List<QueryGraphValueEntryHashKeyed> keyProps,
                                                java.lang.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

getCoercionTypeRange

public static java.lang.Class getCoercionTypeRange(EventType indexedType,
                                                   java.lang.String indexedProp,
                                                   SubordPropRangeKey rangeKey)

getCoercionTypesRange

public static CoercionDesc getCoercionTypesRange(EventType viewableEventType,
                                                 java.util.Map<java.lang.String,SubordPropRangeKey> rangeProps,
                                                 EventType[] typesPerStream)

getCoercionTypesHash

public static CoercionDesc getCoercionTypesHash(EventType viewableEventType,
                                                java.lang.String[] indexProps,
                                                java.util.List<SubordPropHashKey> hashKeys)

getCoercionTypeRangeIn

public static java.lang.Class getCoercionTypeRangeIn(java.lang.Class valuePropType,
                                                     ExprNode exprStart,
                                                     ExprNode exprEnd)

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