|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.query.ProductPlan
public class ProductPlan
The Plan class corresponding to the product relational algebra operator.
| Constructor Summary | |
|---|---|
ProductPlan(Plan p1,
Plan p2)
Creates a new product node in the query tree, having the two specified subqueries. |
|
| Method Summary | |
|---|---|
int |
blocksAccessed()
Estimates the number of block accesses in the product. |
int |
distinctValues(java.lang.String fldname)
Estimates the distinct number of field values in the product. |
Scan |
open()
Creates a product scan for this query. |
int |
recordsOutput()
Estimates the number of output records in the product. |
Schema |
schema()
Returns the schema of the product, which is the union of the schemas of the underlying queries. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProductPlan(Plan p1,
Plan p2)
p1 - the left-hand subqueryp2 - the right-hand subquery| Method Detail |
|---|
public Scan open()
open in interface PlanPlan.open()public int blocksAccessed()
B(product(p1,p2)) = B(p1) + R(p1)*B(p2)
blocksAccessed in interface PlanPlan.blocksAccessed()public int recordsOutput()
R(product(p1,p2)) = R(p1)*R(p2)
recordsOutput in interface PlanPlan.recordsOutput()public int distinctValues(java.lang.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 | |||||||||