Constructor and Description |
---|
ProjectPlan(Plan p,
Set<String> fldNames)
Creates a new project node in the query tree, having the specified
subquery and field list.
|
Modifier and Type | Method and Description |
---|---|
long |
blocksAccessed()
Estimates the number of block accesses in the projection, which is the
same as in the underlying query.
|
Histogram |
histogram()
Returns the histogram that approximates the join distribution of the
field values of query results.
|
Scan |
open()
Creates a project scan for this query.
|
static Histogram |
projectHistogram(Histogram hist,
Set<String> fldNames)
Returns a histogram that approximates the join frequency distribution of
the projected values from the specified histograms onto the specified
fields.
|
long |
recordsOutput()
Returns an estimate of the number of records in the query's output table.
|
Schema |
schema()
Returns the schema of the projection, which is taken from the field list.
|
String |
toString() |
public static Histogram projectHistogram(Histogram hist, Set<String> fldNames)
hist
- the input join distribution of field valuesfldNames
- the names of fields to project topublic Scan open()
open
in interface Plan
Plan.open()
public long blocksAccessed()
blocksAccessed
in interface Plan
Plan.blocksAccessed()
public Schema schema()
schema
in interface Plan
Plan.schema()
public Histogram histogram()
histogram
in interface Plan
Plan.histogram()
public long recordsOutput()
Plan
recordsOutput
in interface Plan
Copyright © 2022 VanillaDB Organization. All rights reserved.