net.esper.eql.join.plan
Class QueryPlanIndex

java.lang.Object
  extended by net.esper.eql.join.plan.QueryPlanIndex

public class QueryPlanIndex
extends Object

Specifies an index to build as part of an overall query plan.


Constructor Summary
QueryPlanIndex(String[][] indexProps)
          Ctor.
 
Method Summary
 int addIndex(String[] indexProperties)
          Add an index specification element.
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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryPlanIndex

public QueryPlanIndex(String[][] indexProps)
Ctor.

Parameters:
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.
Method Detail

getIndexProps

public String[][] getIndexProps()
Returns property names of all indexes.

Returns:
property names array

getIndexNum

protected int getIndexNum(String[] indexFields)
Find a matching index for the property names supplied.

Parameters:
indexFields - - property names to search for
Returns:
-1 if not found, or offset within indexes if found

addIndex

public int addIndex(String[] indexProperties)
Add an index specification element.

Parameters:
indexProperties - - list of property names to index
Returns:
number indicating position of index that was added

toString

public String toString()
Overrides:
toString in class Object

print

public static String print(QueryPlanIndex[] indexSpecs)
Print index specifications in readable format.

Parameters:
indexSpecs - - define indexes
Returns:
readable format of index info