_table_reference#
Object to reference Tables.
Functions#
Return the domain of the target of a reference. |
|
Return the metric of the target of a reference. |
|
Return the children of a reference, or None if it references a single table. |
|
Get a list of the names of all named tables in a domain. |
|
Get a TableReference to the table with the given name. |
- lookup_domain(domain, ref)#
Return the domain of the target of a reference.
- Parameters
domain (tmlt.core.domains.base.Domain) –
ref (TableReference) –
- Return type
tmlt.core.domains.base.Domain
- lookup_metric(metric, ref)#
Return the metric of the target of a reference.
- Parameters
metric (tmlt.core.metrics.Metric) –
ref (TableReference) –
- Return type
tmlt.core.metrics.Metric
- find_children(domain, ref)#
Return the children of a reference, or None if it references a single table.
- Parameters
domain (tmlt.core.domains.base.Domain) –
ref (TableReference) –
- Return type
Optional[List[TableReference]]
- find_named_tables(domain)#
Get a list of the names of all named tables in a domain.
- Parameters
domain (tmlt.core.domains.base.Domain) –
- Return type
List[TableReference]
- find_reference(table_name, domain)#
Get a TableReference to the table with the given name.
- Parameters
table_name (str) –
domain (tmlt.core.domains.base.Domain) –
- Return type
Optional[TableReference]
Classes#
A way to reference tables via their path. |
- class TableReference#
A way to reference tables via their path.
- path :List[tmlt.analytics._table_identifier.Identifier]#
The path for the table reference, provided as a list of Identifiers.
- property identifier#
Get the identifier, i.e. last path segment, of this reference.
- Return type
- property parent#
Get the parent of this reference.
- Return type
- __truediv__(value)#
Add additional segment(s) to the path via the / operator.
- Parameters
value (Union[TableReference, tmlt.analytics._table_identifier.Identifier]) –
- Return type