|
||||||||||
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(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 subqueryMethod Detail |
---|
public Scan open()
open
in interface Plan
Plan.open()
public int blocksAccessed()
B(product(p1,p2)) = B(p1) + R(p1)*B(p2)
blocksAccessed
in interface Plan
Plan.blocksAccessed()
public int recordsOutput()
R(product(p1,p2)) = R(p1)*R(p2)
recordsOutput
in interface Plan
Plan.recordsOutput()
public int distinctValues(String fldname)
distinctValues
in interface Plan
fldname
- the name of a field
Plan.distinctValues(java.lang.String)
public Schema schema()
schema
in interface Plan
Plan.schema()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |