Trait int_compute::Query
[−]
[src]
pub trait Query { fn query<'a, 'b, 'r>(
&'a self,
filter: &'b RefHeaders<'b>
) -> Box<Iterator<Item = FlowTags> + 'r>
where
'a: 'r,
'b: 'r; }
An interface to query existing flows.
While an Event
carries the FlowTags
of the flow that caused it (and
therefore the flow can be examined directly), access to the other existing flows can be
performed through this interface. The interface is passed with every event.
Required Methods
fn query<'a, 'b, 'r>(
&'a self,
filter: &'b RefHeaders<'b>
) -> Box<Iterator<Item = FlowTags> + 'r> where
'a: 'r,
'b: 'r,
&'a self,
filter: &'b RefHeaders<'b>
) -> Box<Iterator<Item = FlowTags> + 'r> where
'a: 'r,
'b: 'r,
Performs a query of the existing flows.
It returns an iterator for all the flows that match the filter. The filter is applied in a
similar way as in the user's query ‒ a flow must match on all the present columns. To match
on one, the value of the column on the flow must be present in the corresponding
RefHeader
of the filter (eg. the filter is CNF).