|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.join.plan.QueryPlanIndex
public class QueryPlanIndex
Specifies an index to build as part of an overall query plan.
Constructor Summary | |
---|---|
QueryPlanIndex(String[][] indexProps,
Class[][] optCoercionTypes)
Ctor. |
Method Summary | |
---|---|
int |
addIndex(String[] indexProperties,
Class[] coercionTypes)
Add an index specification element. |
Class[] |
getCoercionTypes(String[] indexProperties)
Returns a list of coercion types for a given index. |
Class[][] |
getCoercionTypesPerIndex()
Returns property names of all indexes. |
protected int |
getIndexNum(String[] indexFields)
Find a matching index for the property names supplied. |
String[][] |
getIndexProps()
Returns property names of all indexes. |
static String |
print(QueryPlanIndex[] indexSpecs)
Print index specifications in readable format. |
void |
setCoercionTypes(String[] indexProperties,
Class[] coercionTypes)
Sets the coercion types for a given index. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryPlanIndex(String[][] indexProps, Class[][] optCoercionTypes)
indexProps
- - array of property names with the first dimension suplying the number of
distinct indexes. The second dimension can be empty and indicates a full table scan.optCoercionTypes
- - array of coercion types for each index, or null entry for no coercion requiredMethod Detail |
---|
public String[][] getIndexProps()
public Class[][] getCoercionTypesPerIndex()
protected int getIndexNum(String[] indexFields)
indexFields
- - property names to search for
public int addIndex(String[] indexProperties, Class[] coercionTypes)
indexProperties
- - list of property names to indexcoercionTypes
- - list of coercion types if required, or null if no coercion required
public Class[] getCoercionTypes(String[] indexProperties)
indexProperties
- is the index field names
public void setCoercionTypes(String[] indexProperties, Class[] coercionTypes)
indexProperties
- is the index property namescoercionTypes
- is the coercion typespublic String toString()
toString
in class Object
public static String print(QueryPlanIndex[] indexSpecs)
indexSpecs
- - define indexes
|
© 2007 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 |