org.eigenbase.relopt
Interface RelOptSchemaWithSampling

All Superinterfaces:
RelOptSchema
All Known Implementing Classes:
FarragoPreparingStmt, LucidDbPreparingStmt, SqlToRelTestBase.MockRelOptSchema

public interface RelOptSchemaWithSampling
extends RelOptSchema

Extension to RelOptSchema with support for sample datasets.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/relopt/RelOptSchemaWithSampling.java#7 $
Author:
jhyde
See Also:
RelOptConnection, RelOptSchema

Method Summary
 RelOptTable getTableForMember(String[] names, String datasetName, boolean[] usedDataset)
          Retrieves a RelOptTable based upon a member access, using a sample dataset if it exists.
 
Methods inherited from interface org.eigenbase.relopt.RelOptSchema
getTableForMember, getTypeFactory, registerRules
 

Method Detail

getTableForMember

RelOptTable getTableForMember(String[] names,
                              String datasetName,
                              boolean[] usedDataset)
Retrieves a RelOptTable based upon a member access, using a sample dataset if it exists.

Parameters:
names - Compound name of table
datasetName - Name of sample dataset to substitute, if it exists; null to not look for a sample
usedDataset - Output parameter which is set to true if a sample dataset is found; may be null
Returns:
Table, or null if not found