net.sf.farrago.namespace.mock
Class MedMockColumnSet
java.lang.Object
org.eigenbase.relopt.RelOptAbstractTable
net.sf.farrago.namespace.impl.MedAbstractColumnSet
net.sf.farrago.namespace.mock.MedMockColumnSet
- All Implemented Interfaces:
- FarragoMedColumnSet, FarragoQueryColumnSet, RelOptTable, SqlValidatorTable
class MedMockColumnSet
- extends MedAbstractColumnSet
MedMockColumnSet provides a mock implementation of the FarragoMedColumnSet
interface.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/namespace/mock/MedMockColumnSet.java#13 $
- Author:
- John V. Sichi
Methods inherited from class net.sf.farrago.namespace.impl.MedAbstractColumnSet |
getAllowedAccess, getColumnPropertyMap, getCwmColumnSet, getForeignName, getLocalName, getMonotonicity, getPreparingStmt, getQualifiedName, getTableProperties, setAllowedAccess, setCwmColumnSet, setPreparingStmt, toLenientRel, toUdxRel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
server
final MedMockDataServer server
nRows
final long nRows
executorImpl
final String executorImpl
udxSpecificName
final String udxSpecificName
MedMockColumnSet
MedMockColumnSet(MedMockDataServer server,
String[] localName,
RelDataType rowType,
long nRows,
String executorImpl,
String udxSpecificName)
getRowCount
public double getRowCount()
- Description copied from interface:
RelOptTable
- Returns an estimate of the number of rows in the table.
- Specified by:
getRowCount
in interface RelOptTable
- Overrides:
getRowCount
in class RelOptAbstractTable
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