Interface BuiltInMetadata.TableReferences

  • All Superinterfaces:
    Metadata
    All Known Subinterfaces:
    BuiltInMetadata.All
    Enclosing class:
    BuiltInMetadata

    public static interface BuiltInMetadata.TableReferences
    extends Metadata
    Metadata to obtain references to tables used by a given expression.
    • Method Detail

      • getTableReferences

        java.util.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