com.espertech.esper.epl.lookup
Class SubordinateQueryPlannerUtil

java.lang.Object
  extended by com.espertech.esper.epl.lookup.SubordinateQueryPlannerUtil

public class SubordinateQueryPlannerUtil
extends java.lang.Object


Constructor Summary
SubordinateQueryPlannerUtil()
           
 
Method Summary
static void addIndexMetaAndRef(SubordinateQueryIndexDesc[] indexDescs, EventTableIndexMetadata repo, java.lang.String statementName)
           
static IndexKeyInfo compileIndexKeyInfo(IndexMultiKey indexMultiKey, java.lang.String[] hashIndexPropsProvided, SubordPropHashKey[] hashJoinedProps, java.lang.String[] rangeIndexPropsProvided, SubordPropRangeKey[] rangeJoinedProps)
          Given an index with a defined set of hash(equals) and range(btree) props and uniqueness flag, and given a list of indexable properties and accessors for both hash and range, return the ordered keys and coercion information.
static void queryPlanLogOnExpr(boolean queryPlanLogging, org.apache.commons.logging.Log queryPlanLog, SubordinateWMatchExprQueryPlanResult strategy, java.lang.annotation.Annotation[] annotations)
           
static void queryPlanLogOnSubq(boolean queryPlanLogging, org.apache.commons.logging.Log queryPlanLog, SubordinateQueryPlanDesc plan, int subqueryNum, java.lang.annotation.Annotation[] annotations)
           
static EventTable[] realizeTables(SubordinateQueryIndexDesc[] indexDescriptors, EventType eventType, EventTableIndexRepository indexRepository, java.lang.Iterable<EventBean> contents)
           
static SubordinateQueryPlannerIndexPropListPair toListOfHashedAndBtreeProps(java.lang.String[] hashIndexPropsProvided, java.lang.Class[] hashIndexCoercionType, java.lang.String[] rangeIndexPropsProvided, java.lang.Class[] rangeIndexCoercionType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubordinateQueryPlannerUtil

public SubordinateQueryPlannerUtil()
Method Detail

queryPlanLogOnExpr

public static void queryPlanLogOnExpr(boolean queryPlanLogging,
                                      org.apache.commons.logging.Log queryPlanLog,
                                      SubordinateWMatchExprQueryPlanResult strategy,
                                      java.lang.annotation.Annotation[] annotations)

queryPlanLogOnSubq

public static void queryPlanLogOnSubq(boolean queryPlanLogging,
                                      org.apache.commons.logging.Log queryPlanLog,
                                      SubordinateQueryPlanDesc plan,
                                      int subqueryNum,
                                      java.lang.annotation.Annotation[] annotations)

toListOfHashedAndBtreeProps

public static SubordinateQueryPlannerIndexPropListPair toListOfHashedAndBtreeProps(java.lang.String[] hashIndexPropsProvided,
                                                                                   java.lang.Class[] hashIndexCoercionType,
                                                                                   java.lang.String[] rangeIndexPropsProvided,
                                                                                   java.lang.Class[] rangeIndexCoercionType)

compileIndexKeyInfo

public static IndexKeyInfo compileIndexKeyInfo(IndexMultiKey indexMultiKey,
                                               java.lang.String[] hashIndexPropsProvided,
                                               SubordPropHashKey[] hashJoinedProps,
                                               java.lang.String[] rangeIndexPropsProvided,
                                               SubordPropRangeKey[] rangeJoinedProps)
Given an index with a defined set of hash(equals) and range(btree) props and uniqueness flag, and given a list of indexable properties and accessors for both hash and range, return the ordered keys and coercion information.

Parameters:
indexMultiKey - index definition
hashIndexPropsProvided - hash indexable properties
hashJoinedProps - keys for hash indexable properties
rangeIndexPropsProvided - btree indexable properties
rangeJoinedProps - keys for btree indexable properties
Returns:
ordered set of key information

realizeTables

public static EventTable[] realizeTables(SubordinateQueryIndexDesc[] indexDescriptors,
                                         EventType eventType,
                                         EventTableIndexRepository indexRepository,
                                         java.lang.Iterable<EventBean> contents)

addIndexMetaAndRef

public static void addIndexMetaAndRef(SubordinateQueryIndexDesc[] indexDescs,
                                      EventTableIndexMetadata repo,
                                      java.lang.String statementName)
                               throws ExprValidationException
Throws:
ExprValidationException

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