Constructor and Description |
---|
TablePlan(String tblName,
Transaction tx)
Creates a leaf node in the query tree corresponding to the specified
table.
|
Modifier and Type | Method and Description |
---|---|
long |
blocksAccessed()
Estimates the number of block accesses for the table, which is obtainable
from the statistics manager.
|
Histogram |
histogram()
Returns the histogram that approximates the join distribution of the
field values of query results.
|
Scan |
open()
Creates a table scan for this query.
|
long |
recordsOutput()
Returns an estimate of the number of records in the query's output table.
|
Schema |
schema()
Determines the schema of the table, which is obtainable from the catalog
manager.
|
String |
toString() |
public TablePlan(String tblName, Transaction tx)
tblName
- the name of the tabletx
- the calling transactionpublic 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.