Package org.apache.calcite.rel.metadata
Class RelMdTableReferences
java.lang.Object
org.apache.calcite.rel.metadata.RelMdTableReferences
- All Implemented Interfaces:
MetadataHandler<BuiltInMetadata.TableReferences>
public class RelMdTableReferences extends Object implements MetadataHandler<BuiltInMetadata.TableReferences>
Default implementation of
RelMetadataQuery.getTableReferences(org.apache.calcite.rel.RelNode)
for the
standard logical algebra.
The goal of this provider is to return all tables used by a given
expression identified uniquely by a RexTableInputRef.RelTableRef
.
Each unique identifier RexTableInputRef.RelTableRef
of a table will equal to the
identifier obtained running RelMdExpressionLineage
over the same plan
node for an expression that refers to the same table.
If tables cannot be obtained, we return null.
-
Field Summary
Fields Modifier and Type Field Description static RelMetadataProvider
SOURCE
-
Constructor Summary
Constructors Modifier Constructor Description protected
RelMdTableReferences()
-
Method Summary
-
Field Details
-
Constructor Details
-
RelMdTableReferences
protected RelMdTableReferences()
-
-
Method Details
-
getDef
- Specified by:
getDef
in interfaceMetadataHandler<BuiltInMetadata.TableReferences>
-
getTableReferences
-
getTableReferences
-
getTableReferences
-
getTableReferences
TableScan table reference. -
getTableReferences
Table references from Aggregate. -
getTableReferences
Table references from Join. -
getTableReferences
Table references from Union, Intersect, Minus.For Union operator, we might be able to extract multiple table references.
-
getTableReferences
Table references from Project. -
getTableReferences
Table references from Filter. -
getTableReferences
Table references from Calc. -
getTableReferences
Table references from Sort. -
getTableReferences
Table references from TableModify. -
getTableReferences
Table references from Exchange. -
getTableReferences
Table references from Window. -
getTableReferences
Table references from Sample.
-