| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.index.query.IndexJoinPlan
public class IndexJoinPlan
The Plan class corresponding to the indexjoin relational algebra operator.
| Constructor Summary | |
|---|---|
| IndexJoinPlan(Plan p1,
              Plan p2,
              IndexInfo ii,
              String joinfield,
              Transaction tx)Implements the join operator, using the specified LHS and RHS plans. | |
| Method Summary | |
|---|---|
|  int | blocksAccessed()Estimates the number of block accesses to compute the join. | 
|  int | distinctValues(String fldname)Estimates the number of distinct values for the specified field. | 
|  Scan | open()Opens an indexjoin scan for this query | 
|  int | recordsOutput()Estimates the number of output records in the join. | 
|  Schema | schema()Returns the schema of the index join. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public IndexJoinPlan(Plan p1,
                     Plan p2,
                     IndexInfo ii,
                     String joinfield,
                     Transaction tx)
p1 - the left-hand planp2 - the right-hand planii - information about the right-hand indexjoinfield - the left-hand field used for joiningtx - the calling transaction| Method Detail | 
|---|
public Scan open()
open in interface PlanPlan.open()public int blocksAccessed()
 B(indexjoin(p1,p2,idx)) = B(p1) + R(p1)*B(idx)
       + R(indexjoin(p1,p2,idx) 
blocksAccessed in interface PlanPlan.blocksAccessed()public int recordsOutput()
R(indexjoin(p1,p2,idx)) = R(p1)*R(idx)
recordsOutput in interface PlanPlan.recordsOutput()public int distinctValues(String fldname)
distinctValues in interface Planfldname - the name of a field
Plan.distinctValues(java.lang.String)public Schema schema()
schema in interface PlanPlan.schema()| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||