Class QueryPlanIndexForge
java.lang.Object
com.espertech.esper.common.internal.epl.join.queryplan.QueryPlanIndexForge
- All Implemented Interfaces:
CodegenMakeable<SAIFFInitializeSymbol>
Specifies an index to build as part of an overall query plan.
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionaddIndex
(String[] indexProperties, EPTypeClass[] coercionTypes, EventType eventType) getCoercionTypes
(String[] indexProperties) Returns a list of coercion types for a given index.protected TableLookupIndexReqKey
Pair<TableLookupIndexReqKey,
int[]> getIndexNum
(String[] indexProps, String[] rangeProps) Find a matching index for the property names supplied.String[][]
For testing - Returns property names of all indexes.getItems()
make
(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) static QueryPlanIndexForge
makeIndex
(List<QueryPlanIndexItemForge> indexesSet) static QueryPlanIndexForge
makeIndexTableAccess
(TableLookupIndexReqKey indexName) static String
print
(QueryPlanIndexForge[] indexSpecs) Print index specifications in readable format.void
setCoercionTypes
(String[] indexProperties, EPTypeClass[] coercionTypes) Sets the coercion types for a given index.toString()
-
Constructor Details
-
QueryPlanIndexForge
-
-
Method Details
-
make
public CodegenExpression make(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) - Specified by:
make
in interfaceCodegenMakeable<SAIFFInitializeSymbol>
-
getItems
-
makeIndex
-
getIndexNum
Find a matching index for the property names supplied.- Parameters:
indexProps
- - property names to search forrangeProps
- - range props- Returns:
- -1 if not found, or offset within indexes if found
-
getFirstIndexNum
-
addIndex
-
getIndexProps
For testing - Returns property names of all indexes.- Returns:
- property names array
-
getCoercionTypes
Returns a list of coercion types for a given index.- Parameters:
indexProperties
- is the index field names- Returns:
- coercion types, or null if no coercion is required
-
setCoercionTypes
Sets the coercion types for a given index.- Parameters:
indexProperties
- is the index property namescoercionTypes
- is the coercion types
-
toString
-
print
Print index specifications in readable format.- Parameters:
indexSpecs
- - define indexes- Returns:
- readable format of index info
-
makeIndexTableAccess
-