Trait CardinalityOne

Source
pub trait CardinalityOne<S: Scope> {
    // Required method
    fn cardinality_one(&self) -> Collection<S, (Value, Value), isize>;
}
Expand description

Provides the cardinality_one method.

Required Methods§

Source

fn cardinality_one(&self) -> Collection<S, (Value, Value), isize>

Ensures that only a single value per eid exists within an attribute, by retracting any previous values upon new updates. Therefore this stream does not expect explicit retractions.

Implementations on Foreign Types§

Source§

impl<S> CardinalityOne<S> for Collection<S, (Value, Value), isize>
where S: Scope, S::Timestamp: Lattice + Ord,

Implementors§