mcvsubbu commented on a change in pull request #4025: Extend stream interfaces 
to expose message metadata like ingestion timestamp
URL: https://github.com/apache/incubator-pinot/pull/4025#discussion_r272302956
 
 

 ##########
 File path: 
pinot-core/src/main/java/org/apache/pinot/core/realtime/stream/MessageBatch.java
 ##########
 @@ -51,6 +51,17 @@
    */
   int getMessageLengthAtIndex(int index);
 
+  /**
+   * Returns the timestamp associated with the message at a particular index. 
This is typicall the timestamp
+   * when the message was ingested by the upstream stream-provider.
+   *
+   * @return the timestamp associated with the message
+   *         Long.MIN_VALUE if its not supported by the stream
+   */
+  default long getTimestampAtIndex(int index) {
 
 Review comment:
   Suggest change it to getMetadataAtIndex()

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to