Load a TrailDB, including metadata and a trails iterator
Constructors
new(path : String)
Load a TrailDB at path (the .tdb extension is optional).
SourceInstance methods
[](uuidish : String | UInt64 | Int32)
Return a iterator for the given UUID.
Sourceevent_filter
The current event filter. Set to nil to remove.
SourceThe current event filter. Set to nil to remove.
SourceReturn a field ID for given a field name or field ID.
Sourceget_item(fieldish :
String, value :
String) :
TdbItem Return the item corresponding to a field ID or a field name and a string value.
Sourceget_item_value(item :
TdbItem) :
String Return the string value corresponding to an item.
Sourceget_trail_id(uuid : String)
Return Trail ID given a UUID.
Sourceget_uuid(trail_id : UInt64 | Int32, raw = false) : String
Return UUID given a Trail ID.
SourceReturn the string value corresponding to a field ID or a field name and a value ID.
Sourceincludes?(uuidish)
Return true if UUID or Trail ID exists in this TrailDB.
SourceReturn an iterator over values of the given field ID or field name.
SourceReturn the number of distinct values in the given field ID or field name.
Sourcemax_timestamp
Return the maximum time stamp of this TrailDB.
Sourcemin_timestamp
Return the minimum time stamp of this TrailDB.
Sourceparse_timestamp
Whether to parse timestamp as a Time, or leave as UInt64
Sourceparse_timestamp=(parse_timestamp : Bool)
Whether to parse timestamp as a Time, or leave as UInt64
Sourcereuse_cursor
Whether to reuse the TrailDB cursor.
Enabling this prevents out-of-order access of events in trails, but makes iteration more efficient.
Sourcereuse_cursor=(reuse_cursor : Bool)
Set whether to reuse the TrailDB cursor
Sourcetime_range
Return the time range covered by this TrailDB.
Sourcetrails
Return a iterator for all trails.
Source