@@ -10,6 +10,7 @@ pub type TimelyLogger = Logger<TimelyEvent>;
1010pub type TimelyProgressLogger = Logger < TimelyProgressEvent > ;
1111
1212use std:: time:: Duration ;
13+ use columnar:: Columnar ;
1314use serde:: { Deserialize , Serialize } ;
1415use crate :: dataflow:: operators:: capture:: { Event , EventPusher } ;
1516
@@ -49,7 +50,7 @@ impl<T, E, P> Drop for BatchLogger<T, E, P> where P: EventPusher<Duration, Vec<(
4950 }
5051}
5152
52- #[ derive( Serialize , Deserialize , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
53+ #[ derive( Serialize , Deserialize , Columnar , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
5354/// The creation of an `Operate` implementor.
5455pub struct OperatesEvent {
5556 /// Worker-unique identifier for the operator.
@@ -60,7 +61,7 @@ pub struct OperatesEvent {
6061 pub name : String ,
6162}
6263
63- #[ derive( Serialize , Deserialize , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
64+ #[ derive( Serialize , Deserialize , Columnar , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
6465/// The creation of a channel between operators.
6566pub struct ChannelsEvent {
6667 /// Worker-unique identifier for the channel
@@ -146,14 +147,14 @@ pub struct TimelyProgressEvent {
146147 pub internal : Box < dyn ProgressEventTimestampVec > ,
147148}
148149
149- #[ derive( Serialize , Deserialize , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
150+ #[ derive( Serialize , Deserialize , Columnar , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
150151/// External progress pushed onto an operator
151152pub struct PushProgressEvent {
152153 /// Worker-unique operator identifier
153154 pub op_id : usize ,
154155}
155156
156- #[ derive( Serialize , Deserialize , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
157+ #[ derive( Serialize , Deserialize , Columnar , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
157158/// Message send or receive event
158159pub struct MessagesEvent {
159160 /// `true` if send event, `false` if receive event.
@@ -171,15 +172,15 @@ pub struct MessagesEvent {
171172}
172173
173174/// Records the starting and stopping of an operator.
174- #[ derive( Serialize , Deserialize , Debug , Clone , Hash , PartialEq , Eq , Ord , PartialOrd ) ]
175+ #[ derive( Serialize , Deserialize , Columnar , Debug , Clone , Hash , PartialEq , Eq , Ord , PartialOrd ) ]
175176pub enum StartStop {
176177 /// Operator starts.
177178 Start ,
178179 /// Operator stops.
179180 Stop ,
180181}
181182
182- #[ derive( Serialize , Deserialize , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
183+ #[ derive( Serialize , Deserialize , Columnar , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
183184/// Operator start or stop.
184185pub struct ScheduleEvent {
185186 /// Worker-unique identifier for the operator, linkable to the identifiers in [`OperatesEvent`].
@@ -197,14 +198,14 @@ impl ScheduleEvent {
197198 pub fn stop ( id : usize ) -> Self { ScheduleEvent { id, start_stop : StartStop :: Stop } }
198199}
199200
200- #[ derive( Serialize , Deserialize , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
201+ #[ derive( Serialize , Deserialize , Columnar , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
201202/// Operator shutdown.
202203pub struct ShutdownEvent {
203204 /// Worker-unique identifier for the operator, linkable to the identifiers in [`OperatesEvent`].
204205 pub id : usize ,
205206}
206207
207- #[ derive( Serialize , Deserialize , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
208+ #[ derive( Serialize , Deserialize , Columnar , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
208209/// Application-defined code start or stop
209210pub struct ApplicationEvent {
210211 /// Unique event type identifier
@@ -213,28 +214,28 @@ pub struct ApplicationEvent {
213214 pub is_start : bool ,
214215}
215216
216- #[ derive( Serialize , Deserialize , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
217+ #[ derive( Serialize , Deserialize , Columnar , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
217218/// Application-defined code start or stop
218219pub struct GuardedMessageEvent {
219220 /// `true` when activity begins, `false` when it stops
220221 pub is_start : bool ,
221222}
222223
223- #[ derive( Serialize , Deserialize , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
224+ #[ derive( Serialize , Deserialize , Columnar , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
224225/// Application-defined code start or stop
225226pub struct GuardedProgressEvent {
226227 /// `true` when activity begins, `false` when it stops
227228 pub is_start : bool ,
228229}
229230
230- #[ derive( Serialize , Deserialize , Debug , PartialEq , Eq , Hash , Clone , Copy ) ]
231+ #[ derive( Serialize , Deserialize , Columnar , Debug , PartialEq , Eq , Hash , Clone , Copy ) ]
231232/// Identifier of the worker that generated a log line
232233pub struct TimelySetup {
233234 /// Worker index
234235 pub index : usize ,
235236}
236237
237- #[ derive( Serialize , Deserialize , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
238+ #[ derive( Serialize , Deserialize , Columnar , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
238239/// Kind of communication channel
239240pub enum CommChannelKind {
240241 /// Communication channel carrying progress information
@@ -243,7 +244,7 @@ pub enum CommChannelKind {
243244 Data ,
244245}
245246
246- #[ derive( Serialize , Deserialize , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
247+ #[ derive( Serialize , Deserialize , Columnar , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
247248/// Event on a communication channel
248249pub struct CommChannelsEvent {
249250 /// Communication channel identifier
@@ -252,15 +253,15 @@ pub struct CommChannelsEvent {
252253 pub kind : CommChannelKind ,
253254}
254255
255- #[ derive( Serialize , Deserialize , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
256+ #[ derive( Serialize , Deserialize , Columnar , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
256257/// Input logic start/stop
257258pub struct InputEvent {
258259 /// True when activity begins, false when it stops
259260 pub start_stop : StartStop ,
260261}
261262
262263/// Records the starting and stopping of an operator.
263- #[ derive( Serialize , Deserialize , Debug , Clone , Hash , PartialEq , Eq , Ord , PartialOrd ) ]
264+ #[ derive( Serialize , Deserialize , Columnar , Debug , Clone , Hash , PartialEq , Eq , Ord , PartialOrd ) ]
264265pub enum ParkEvent {
265266 /// Worker parks.
266267 Park ( Option < Duration > ) ,
@@ -275,7 +276,7 @@ impl ParkEvent {
275276 pub fn unpark ( ) -> Self { ParkEvent :: Unpark }
276277}
277278
278- #[ derive( Serialize , Deserialize , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
279+ #[ derive( Serialize , Deserialize , Columnar , Debug , Clone , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
279280/// An event in a timely worker
280281pub enum TimelyEvent {
281282 /// Operator creation.
0 commit comments