Package org.apache.calcite.rel.metadata
Interface BuiltInMetadata.TableReferences
- All Superinterfaces:
Metadata
- Enclosing class:
BuiltInMetadata
Metadata to obtain references to tables used by a given expression.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Handler API. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis provider returns the tables used by a given plan.
-
Field Details
-
DEF
-
-
Method Details
-
getTableReferences
Set<RexTableInputRef.RelTableRef> getTableReferences()This provider returns the tables used by a given plan.In particular, the result will be a set of unique table references (
RexTableInputRef.RelTableRef
) corresponding to each TableScan operator in the plan. These table references are composed by the table qualified name and an entity number.Importantly, the table identifiers returned by this metadata provider will be consistent with the unique identifiers used by the
BuiltInMetadata.ExpressionLineage
provider, meaning that it is guaranteed that same table will use same unique identifiers in both.- Returns:
- set of unique table identifiers, or null if this information cannot be determined
-