You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: numaflow/src/batchmap.rs
+5-9
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
+
use chrono::{DateTime,Utc};
1
2
use std::collections::HashMap;
2
3
use std::fs;
3
4
use std::path::PathBuf;
4
5
use std::sync::Arc;
5
-
use std::time::SystemTime;
6
6
use tokio::sync::mpsc::channel;
7
7
use tokio::sync::{mpsc, oneshot};
8
8
use tokio::task::JoinHandle;
@@ -83,9 +83,9 @@ pub struct Datum {
83
83
/// The value in the (key, value) terminology of map/reduce paradigm.
84
84
pubvalue:Vec<u8>,
85
85
/// [watermark](https://numaflow.numaproj.io/core-concepts/watermarks/) represented by time is a guarantee that we will not see an element older than this time.
86
-
pubwatermark:SystemTime,
86
+
pubwatermark:DateTime<Utc>,
87
87
/// Time of the element as seen at source or aligned after a reduce operation.
88
-
pubevent_time:SystemTime,
88
+
pubevent_time:DateTime<Utc>,
89
89
/// ID is the unique id of the message to be sent to the Batch Map.
90
90
pubid:String,
91
91
/// Headers for the message.
@@ -103,12 +103,8 @@ impl TryFrom<MapRequest> for Datum {
Copy file name to clipboardexpand all lines: numaflow/src/map.rs
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
+
use chrono::{DateTime,Utc};
1
2
use std::collections::HashMap;
2
3
use std::fs;
3
4
use std::path::PathBuf;
4
5
use std::sync::Arc;
5
-
use std::time::SystemTime;
6
6
use tokio::sync::{mpsc, oneshot};
7
7
use tokio::task::JoinHandle;
8
8
use tokio_stream::wrappers::ReceiverStream;
@@ -163,9 +163,9 @@ pub struct MapRequest {
163
163
/// The value in the (key, value) terminology of map/reduce paradigm.
164
164
pubvalue:Vec<u8>,
165
165
/// [watermark](https://numaflow.numaproj.io/core-concepts/watermarks/) represented by time is a guarantee that we will not see an element older than this time.
166
-
pubwatermark:SystemTime,
166
+
pubwatermark:DateTime<Utc>,
167
167
/// Time of the element as seen at source or aligned after a reduce operation.
168
-
pubeventtime:SystemTime,
168
+
pubeventtime:DateTime<Utc>,
169
169
/// Headers for the message.
170
170
pubheaders:HashMap<String,String>,
171
171
}
@@ -175,8 +175,8 @@ impl From<proto::map_request::Request> for MapRequest {
Copy file name to clipboardexpand all lines: numaflow/src/mapstream.rs
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
+
use chrono::{DateTime,Utc};
1
2
use std::collections::HashMap;
2
3
use std::fs;
3
4
use std::path::PathBuf;
4
5
use std::sync::Arc;
5
-
use std::time::SystemTime;
6
6
use tokio::sync::mpsc::Sender;
7
7
use tokio::sync::{mpsc, oneshot};
8
8
use tokio::task::JoinHandle;
@@ -167,9 +167,9 @@ pub struct MapStreamRequest {
167
167
/// The value in the (key, value) terminology of map/reduce paradigm.
168
168
pubvalue:Vec<u8>,
169
169
/// [watermark](https://numaflow.numaproj.io/core-concepts/watermarks/) represented by time is a guarantee that we will not see an element older than this time.
170
-
pubwatermark:SystemTime,
170
+
pubwatermark:DateTime<Utc>,
171
171
/// Time of the element as seen at source or aligned after a reduce operation.
172
-
pubeventtime:SystemTime,
172
+
pubeventtime:DateTime<Utc>,
173
173
/// Headers for the message.
174
174
pubheaders:HashMap<String,String>,
175
175
}
@@ -179,8 +179,8 @@ impl From<proto::map_request::Request> for MapStreamRequest {
0 commit comments