|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.join.plan.QueryPlanIndex
public class QueryPlanIndex
Specifies an index to build as part of an overall query plan.
Constructor Summary | |
---|---|
QueryPlanIndex(java.util.Map<TableLookupIndexReqKey,QueryPlanIndexItem> items)
|
Method Summary | |
---|---|
java.lang.String |
addIndex(java.lang.String[] indexProperties,
java.lang.Class[] coercionTypes)
Add an index specification element. |
java.lang.Class[] |
getCoercionTypes(java.lang.String[] indexProperties)
Returns a list of coercion types for a given index. |
protected TableLookupIndexReqKey |
getFirstIndexNum()
|
protected Pair<TableLookupIndexReqKey,int[]> |
getIndexNum(java.lang.String[] indexProps,
java.lang.String[] rangeProps)
Find a matching index for the property names supplied. |
java.lang.String[][] |
getIndexProps()
For testing - Returns property names of all indexes. |
java.util.Map<TableLookupIndexReqKey,QueryPlanIndexItem> |
getItems()
|
static QueryPlanIndex |
makeIndex(java.util.List<QueryPlanIndexItem> indexesSet)
|
static QueryPlanIndex |
makeIndex(QueryPlanIndexItem... items)
|
static QueryPlanIndex |
makeIndexTableAccess(TableLookupIndexReqKey indexName)
|
static java.lang.String |
print(QueryPlanIndex[] indexSpecs)
Print index specifications in readable format. |
void |
setCoercionTypes(java.lang.String[] indexProperties,
java.lang.Class[] coercionTypes)
Sets the coercion types for a given index. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryPlanIndex(java.util.Map<TableLookupIndexReqKey,QueryPlanIndexItem> items)
Method Detail |
---|
public java.util.Map<TableLookupIndexReqKey,QueryPlanIndexItem> getItems()
public static QueryPlanIndex makeIndex(QueryPlanIndexItem... items)
public static QueryPlanIndex makeIndex(java.util.List<QueryPlanIndexItem> indexesSet)
protected Pair<TableLookupIndexReqKey,int[]> getIndexNum(java.lang.String[] indexProps, java.lang.String[] rangeProps)
indexProps
- - property names to search for
protected TableLookupIndexReqKey getFirstIndexNum()
public java.lang.String addIndex(java.lang.String[] indexProperties, java.lang.Class[] coercionTypes)
indexProperties
- - list of property names to indexcoercionTypes
- - list of coercion types if required, or null if no coercion required
public java.lang.String[][] getIndexProps()
public java.lang.Class[] getCoercionTypes(java.lang.String[] indexProperties)
indexProperties
- is the index field names
public void setCoercionTypes(java.lang.String[] indexProperties, java.lang.Class[] coercionTypes)
indexProperties
- is the index property namescoercionTypes
- is the coercion typespublic java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String print(QueryPlanIndex[] indexSpecs)
indexSpecs
- - define indexes
public static QueryPlanIndex makeIndexTableAccess(TableLookupIndexReqKey indexName)
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |