beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Halperin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEAM-1936) Allow user provided function to extract custom timestamp from payload in pubsubIO
Date Thu, 20 Apr 2017 17:58:04 GMT

    [ https://issues.apache.org/jira/browse/BEAM-1936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15977149#comment-15977149
] 

Daniel Halperin commented on BEAM-1936:
---------------------------------------

cc [~reuvenlax]

> Allow user provided function to extract custom timestamp from payload in pubsubIO
> ---------------------------------------------------------------------------------
>
>                 Key: BEAM-1936
>                 URL: https://issues.apache.org/jira/browse/BEAM-1936
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-java-gcp
>            Reporter: Keith Berkoben
>
> Currently the PubsubIO runner only allows the caller to set a custom timestamp if the
timestamp is defined in the attributes of the message.  This can be problematic when the user
does not control the publisher.  In such a case, proper windowing of data requires the timestamp
to be pulled out of the message payload.  
> Since a payload could have arbitrary data, the user would have to provide a Function<T,
String>() that would extract the timestamp from the payload:
> PubsubIo.Read.timestampLabel(Function<T, String> extractor);



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message