Class CoercionUtil
java.lang.Object
com.espertech.esper.common.internal.epl.join.queryplan.CoercionUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EPTypeClass
getCoercionTypeRangeIn
(EPType valuePropType, ExprNode exprStart, ExprNode exprEnd) static EPTypeClass[]
getCoercionTypes
(EPType[] propTypes) static CoercionDesc
getCoercionTypesHash
(EventType[] typesPerStream, int lookupStream, int indexedStream, List<QueryGraphValueEntryHashKeyedForge> 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.static CoercionDesc
getCoercionTypesHash
(EventType viewableEventType, String[] indexProps, List<SubordPropHashKeyForge> hashKeys) static CoercionDesc
getCoercionTypesRange
(EventType[] typesPerStream, int indexedStream, String[] indexedProp, List<QueryGraphValueEntryRangeForge> rangeEntries) static CoercionDesc
getCoercionTypesRange
(EventType viewableEventType, Map<String, SubordPropRangeKeyForge> rangeProps, EventType[] typesPerStream)
-
Constructor Details
-
CoercionUtil
public CoercionUtil()
-
-
Method Details
-
getCoercionTypesRange
public static CoercionDesc getCoercionTypesRange(EventType[] typesPerStream, int indexedStream, String[] indexedProp, List<QueryGraphValueEntryRangeForge> rangeEntries) -
getCoercionTypesHash
public static CoercionDesc getCoercionTypesHash(EventType[] typesPerStream, int lookupStream, int indexedStream, List<QueryGraphValueEntryHashKeyedForge> 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 streamlookupStream
- is the stream looked up fromindexedStream
- is the indexed streamkeyProps
- is the properties to use to look upindexProps
- is the properties to index on- Returns:
- coercion types, or null if none required
-
getCoercionTypesRange
public static CoercionDesc getCoercionTypesRange(EventType viewableEventType, Map<String, SubordPropRangeKeyForge> rangeProps, EventType[] typesPerStream) -
getCoercionTypesHash
public static CoercionDesc getCoercionTypesHash(EventType viewableEventType, String[] indexProps, List<SubordPropHashKeyForge> hashKeys) -
getCoercionTypeRangeIn
public static EPTypeClass getCoercionTypeRangeIn(EPType valuePropType, ExprNode exprStart, ExprNode exprEnd) -
getCoercionTypes
-