tlc.core.objects.tables.system_tables.indexing_tables.run_indexing_table
#
A specialized indexing table for Run objects fetched from URLs.
Module Contents#
Classes#
Class |
Description |
---|---|
A specialized indexing table for Run objects fetched from URLs. |
API#
- class tlc.core.objects.tables.system_tables.indexing_tables.run_indexing_table.RunIndexingTable(url: tlc.core.url.Url | None = None, project_scan_urls: list[tlc.core.url.Url] | None = None, extra_scan_urls: list[tlc.core.url.Url] | None = None, scan_urls: list[tlc.core.objects.tables.system_tables.indexing._ScanUrl] | None = None, scan_wait: float | None = None, create_default_dirs: bool | None = None, init_parameters: Any = None)#
Bases:
tlc.core.objects.tables.system_tables.indexing_table.IndexingTable
A specialized indexing table for Run objects fetched from URLs.
This table is designed to manage Run objects. Each row in this table corresponds to a Run object that is fetched from a URL. It extends from the generic
IndexingTable
to provide functionalities specifically optimized for handling Run objects.- Example:
table = RunIndexingTable.instance() table.wait_for_next_index() for row in table.table_rows: print(row)
- Closing Comments:
Singleton Pattern: This class implements the Singleton pattern. Always use
RunIndexingTable.instance()
to get the singleton instance.
- Parameters:
url – The URL from which this table can be read.
scan_urls – A list of URLs to scan for runs.
scan_wait – Time to wait before requeuing a new scan, in seconds.
init_parameters – Any initialization parameters.
- Raises:
ValueError – If some conditions, such as invalid URLs, are not met.
- Parameters:
url – The URL of the table.
created – The creation time of the table.
description – The description of the table.
row_cache_url – The URL of the row cache.
row_cache_populated – Whether the row cache is populated.
override_table_rows_schema – The schema to override the table rows schema.
init_parameters – The initial parameters of the table.
input_tables – A list of Table URLs that are considered direct predecessors in this table’s lineage. This parameter serves as an explicit mechanism for tracking table relationships beyond the automatic lineage tracing typically managed by subclasses.
- run_indexing_table_instance: tlc.core.objects.tables.system_tables.indexing_tables.run_indexing_table.RunIndexingTable | None = None#
- static instance() tlc.core.objects.tables.system_tables.indexing_tables.run_indexing_table.RunIndexingTable #
Returns the singleton RunIndexingTable object
- add_scan_url(scan_url: tlc.core.objects.tables.system_tables.indexing._ScanUrl) None #
Adds a Scan URL to the indexing table.
- should_consider_object(obj: tlc.core.object.Object) bool #
Only consider Runs