Package org.apache.calcite.plan
Interface RelOptSchemaWithSampling
- All Superinterfaces:
RelOptSchema
Extension to
RelOptSchema
with support for sample data-sets.- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable RelOptTable
getTableForMember
(List<String> names, @Nullable String datasetName, boolean @Nullable [] usedDataset) Retrieves aRelOptTable
based upon a member access, using a sample dataset if it exists.Methods inherited from interface org.apache.calcite.plan.RelOptSchema
getTableForMember, getTypeFactory, registerRules
-
Method Details
-
getTableForMember
@Nullable RelOptTable getTableForMember(List<String> names, @Nullable String datasetName, boolean @Nullable [] usedDataset) Retrieves aRelOptTable
based upon a member access, using a sample dataset if it exists.- Parameters:
names
- Compound name of tabledatasetName
- Name of sample dataset to substitute, if it exists; null to not look for a sampleusedDataset
- Output parameter which is set to true if a sample dataset is found; may be null- Returns:
- Table, or null if not found
-