|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.multibuffer.MultiBufferProductPlan
public class MultiBufferProductPlan
The Plan class for the muti-buffer version of the product operator.
| Constructor Summary | |
|---|---|
MultiBufferProductPlan(Plan lhs,
Plan rhs,
Transaction tx)
Creates a product plan for the specified queries. |
|
| Method Summary | |
|---|---|
int |
blocksAccessed()
Returns an estimate of the number of block accesses required to execute the query. |
int |
distinctValues(String fldname)
Estimates the distinct number of field values in the product. |
Scan |
open()
A scan for this query is created and returned, as follows. |
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 MultiBufferProductPlan(Plan lhs,
Plan rhs,
Transaction tx)
lhs - the plan for the LHS queryrhs - the plan for the RHS querytx - the calling transaction| Method Detail |
|---|
public Scan open()
open in interface PlanPlan.open()public int blocksAccessed()
B(product(p1,p2)) = B(p2) + B(p1)*C(p2)where C(p2) is the number of chunks of p2. The method uses the current number of available buffers to calculate C(p2), and so this value may differ when the query scan is opened.
blocksAccessed in interface PlanPlan.blocksAccessed()public int recordsOutput()
R(product(p1,p2)) = R(p1)*R(p2)
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 | |||||||||