Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id ACD95200B57 for ; Sat, 6 Aug 2016 13:47:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A11F0160A89; Sat, 6 Aug 2016 11:47:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E6EBE160A77 for ; Sat, 6 Aug 2016 13:47:35 +0200 (CEST) Received: (qmail 99769 invoked by uid 500); 6 Aug 2016 11:47:34 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 99759 invoked by uid 99); 6 Aug 2016 11:47:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Aug 2016 11:47:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 4DB57C0362 for ; Sat, 6 Aug 2016 11:47:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.429 X-Spam-Level: * X-Spam-Status: No, score=1.429 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 7VS2iHd0x1Sx for ; Sat, 6 Aug 2016 11:47:33 +0000 (UTC) Received: from mail-ua0-f180.google.com (mail-ua0-f180.google.com [209.85.217.180]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5D2135F366 for ; Sat, 6 Aug 2016 11:47:33 +0000 (UTC) Received: by mail-ua0-f180.google.com with SMTP id i31so69835452uai.2 for ; Sat, 06 Aug 2016 04:47:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=N/fh8hTdsc4QTGpH3lwbBPycMswbrL1/51BaeOouY44=; b=tjaUV76EsWimjTd8XBLz//IKskrKnJKpnZyOLrMGBtBt3OU85kDSULXHE7EAqbDAxd bZIU//ADee1AAeHTJBsEd2p0kIo83QjU9gkyz/1TUk0IMWxQ2Fmz1PFWvMHjH0k856SU 39V+DowBxddhnDt7nZ/3Hp52MBVO5/USSg4MO6RSsLj1ocXXN6PWPYlSBBGFtacxCXus hthJAbodkF3lH8w/2aeDXuEF/8EPUJaYh5vxV/RWXoreYNfqHuVdIuira4+nHU/8EVm1 sLu+IfX/UVTIhWFR5J5LaSLTN3kpA6IRkWe7SxW1+Xl2TzYJJ2bYM288LxBbsX+f+2/v RZvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=N/fh8hTdsc4QTGpH3lwbBPycMswbrL1/51BaeOouY44=; b=YICwdvdOLEHBWwnlrPoXvzvafp5ZUHcHjvVO1z+xP/YVkpKUEgZGlPArWy1iRp+MwR ub5MITgE2W+tvRQR+GflhxTkTTbbHJPP00x9FhZAqhZH3JaUdgVAVdtLxn0RNds9tCFD Qhrxkonhi74GknGzcjnAqpXM/Dyakbe4/iYCBZuN+DwSgGKvoPhYXMb7v9ItYViSg/1p fchQKlVv6+kl0sPLkZh3Zb1lftkQwGXI3OjUxA2Ezds+H8+m/MYIy7ZUYxg0H/OGEf2F NpVo3qvCvFQV+om1XwxFhGXxTnkRVszvcJtjoae0TiXQpAHJUaMFZkq+JHcZiB6iccvn f5Gg== X-Gm-Message-State: AEkoouu2+jpad+qDnBcJyvXjpKKVWfRX0vhhJ/ytFqhseX+4urheX94IWoVsNKH5Rq4xsgbikDjQ8Pr0Aldgtg== X-Received: by 10.159.32.81 with SMTP id 75mr42785470uam.22.1470484047172; Sat, 06 Aug 2016 04:47:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.43.198 with HTTP; Sat, 6 Aug 2016 04:47:26 -0700 (PDT) From: Davood Rafiei Date: Sat, 6 Aug 2016 13:47:26 +0200 Message-ID: Subject: Flink timestamps To: user@flink.apache.org Content-Type: multipart/alternative; boundary=94eb2c0d0676479a96053965bf58 archived-at: Sat, 06 Aug 2016 11:47:36 -0000 --94eb2c0d0676479a96053965bf58 Content-Type: text/plain; charset=UTF-8 Hi, I want to assign timestamps to tuples when they enter source operator , get those timestamps in sink operator and extract them from current time and output. Basically my goal is to measure latency. To set timestamps in source operator I used: * env.setStreamTimeCharacteristic(TimeCharacteristic.IngestionTime);* However, I don't know how to get the tuple's previously assigned (in source operator) timestamp in sink operator. Is it possible? Or should I insert a separate field to tuple for keeping the timestamp? Cheers Davood --94eb2c0d0676479a96053965bf58 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I want to assign timestamps to = tuples when they enter source operator ,=C2=A0 get those timestamps in sink= operator and extract them from current time and output.

Basically = my goal is to measure latency.

To set timestamps in sour= ce operator I used:
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
=C2=A0 env.set= StreamTimeCharacteristic(TimeCharacteristic.IngestionTime);

However, I don't know how to get the tuple's previously assi= gned (in source operator) timestamp in sink operator. Is it possible? Or sh= ould I insert a separate field to tuple for keeping the timestamp?

<= /div>
Cheers
Davood



=
--94eb2c0d0676479a96053965bf58--