TableReplayer
TableReplayer is used to replay historical data with timestamps in a new, in-memory table.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| start_time | Union[Instant, str] | Historical data start time. |
| end_time | Union[Instant, str] | Historical data end time. |
Returns
A Replayer object that can be used to replay historical data.
Methods
TableReplayer supports the following methods:
add_table()- Registers a table for replaying and returns the associated replay table.start()- Starts replaying data.shutdown()- Shuts the replayer down.
Example
The following example creates some fake historical data with timestamps and then replays it.
The following example replays two tables with the same replayer.