|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.query.ProjectPlan
public class ProjectPlan
The Plan class corresponding to the project relational algebra operator.
Constructor Summary | |
---|---|
ProjectPlan(Plan p,
Collection<String> fieldlist)
Creates a new project node in the query tree, having the specified subquery and field list. |
Method Summary | |
---|---|
int |
blocksAccessed()
Estimates the number of block accesses in the projection, which is the same as in the underlying query. |
int |
distinctValues(String fldname)
Estimates the number of distinct field values in the projection, which is the same as in the underlying query. |
Scan |
open()
Creates a project scan for this query. |
int |
recordsOutput()
Estimates the number of output records in the projection, which is the same as in the underlying query. |
Schema |
schema()
Returns the schema of the projection, which is taken from the field list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectPlan(Plan p, Collection<String> fieldlist)
p
- the subqueryfieldlist
- the list of fieldsMethod Detail |
---|
public Scan open()
open
in interface Plan
Plan.open()
public int blocksAccessed()
blocksAccessed
in interface Plan
Plan.blocksAccessed()
public int recordsOutput()
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 |