public class QueryPlanIndexForge extends Object implements CodegenMakeable<SAIFFInitializeSymbol>
Constructor and Description |
---|
QueryPlanIndexForge(Map<TableLookupIndexReqKey,QueryPlanIndexItemForge> items) |
Modifier and Type | Method and Description |
---|---|
String |
addIndex(String[] indexProperties,
Class[] coercionTypes,
EventType eventType) |
Class[] |
getCoercionTypes(String[] indexProperties)
Returns a list of coercion types for a given index.
|
protected TableLookupIndexReqKey |
getFirstIndexNum() |
Pair<TableLookupIndexReqKey,int[]> |
getIndexNum(String[] indexProps,
String[] rangeProps)
Find a matching index for the property names supplied.
|
String[][] |
getIndexProps()
For testing - Returns property names of all indexes.
|
Map<TableLookupIndexReqKey,QueryPlanIndexItemForge> |
getItems() |
CodegenExpression |
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,
Class[] coercionTypes)
Sets the coercion types for a given index.
|
String |
toString() |
public QueryPlanIndexForge(Map<TableLookupIndexReqKey,QueryPlanIndexItemForge> items)
public CodegenExpression make(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope)
make
in interface CodegenMakeable<SAIFFInitializeSymbol>
public Map<TableLookupIndexReqKey,QueryPlanIndexItemForge> getItems()
public static QueryPlanIndexForge makeIndex(List<QueryPlanIndexItemForge> indexesSet)
public Pair<TableLookupIndexReqKey,int[]> getIndexNum(String[] indexProps, String[] rangeProps)
indexProps
- - property names to search forrangeProps
- - range propsprotected TableLookupIndexReqKey getFirstIndexNum()
public String addIndex(String[] indexProperties, Class[] coercionTypes, EventType eventType)
public String[][] getIndexProps()
public Class[] getCoercionTypes(String[] indexProperties)
indexProperties
- is the index field namespublic void setCoercionTypes(String[] indexProperties, Class[] coercionTypes)
indexProperties
- is the index property namescoercionTypes
- is the coercion typespublic static String print(QueryPlanIndexForge[] indexSpecs)
indexSpecs
- - define indexespublic static QueryPlanIndexForge makeIndexTableAccess(TableLookupIndexReqKey indexName)
Copyright © 2005–2018. All rights reserved.