net.sf.farrago.query
Class FarragoView
java.lang.Object
org.eigenbase.relopt.RelOptAbstractTable
net.sf.farrago.query.FarragoQueryNamedColumnSet
net.sf.farrago.query.FarragoView
- All Implemented Interfaces:
- FarragoMedColumnSet, FarragoQueryColumnSet, RelOptTable, SqlValidatorTable
class FarragoView
- extends FarragoQueryNamedColumnSet
An implementation of RelOptTable for accessing a view managed by Farrago.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/query/FarragoView.java#20 $
- Author:
- John V. Sichi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
datasetName
private final String datasetName
modality
private final ModalityType modality
FarragoView
FarragoView(FemLocalView cwmView,
RelDataType rowType,
String datasetName,
ModalityType modality)
- Creates a new FarragoView object.
- Parameters:
cwmView - catalog definition for viewrowType - type for rows produced by viewdatasetName - Name of sample dataset, or null to use vanillamodality -
getFemView
public FemLocalView getFemView()
toRel
public RelNode toRel(RelOptCluster cluster,
RelOptConnection connection)
- Description copied from interface:
RelOptTable
- Converts this table into a
relational expression.
The planner calls this
method to convert a table into an initial relational expression,
generally something abstract, such as a TableAccessRel, then optimizes this expression by
applying rules to transform it
into more efficient access methods for this table.
- Parameters:
cluster - the cluster the relational expression will belong toconnection - the parse tree of the expression which evaluates to a
connection object
expandView
private RelNode expandView(String queryString)