pub trait TimeKey: Copy {
// Required methods
fn timestamp_us(&self) -> u64;
fn partition(&self) -> u64;
// Provided method
fn key(&self) -> TimeKeyItem { ... }
}
Expand description
TimeKey is a trait that defines the interface for a time key.
A stream set will be
- ordered on timestamp
- columnar on partition
- compressed at rest
- backed by a u128 value
Required Methods§
Provided Methods§
fn key(&self) -> TimeKeyItem
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl TimeKey for UserDeviceTimeKey
Implement the TimeKey
trait for UserDeviceTimeKey
so that it can be used in a TkStreamSet
.