ts_shape.eventlog.concat
Concatenate multiple :class:EventLog instances into one.
Functions
| Name | Description |
|---|---|
concat | Concatenate several event logs into one. |
concat
concat(*logs: EventLog) -> EventLog
Concatenate several event logs into one.
Each table is concatenated, then deduplicated: objects by
(oid, type), events by event id (after sorting by timestamp),
relations by (eid, oid, type, qualifier), object-to-object links by
(oid, oid_2, qualifier), and object changes by
(oid, type, field, timestamp). An object id used by two types is two
objects, so their changes are kept apart; one event linked to one object
in two roles keeps both relations.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
*logs | EventLog | Event logs to combine. | () |
Returns
| Type | Description |
|---|---|
EventLog | A new EventLog; an empty EventLog when no logs are given. |