Return-Path: X-Original-To: apmail-flink-dev-archive@www.apache.org Delivered-To: apmail-flink-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B3781897F for ; Tue, 19 Jan 2016 10:34:33 +0000 (UTC) Received: (qmail 44540 invoked by uid 500); 19 Jan 2016 10:34:33 -0000 Delivered-To: apmail-flink-dev-archive@flink.apache.org Received: (qmail 44473 invoked by uid 500); 19 Jan 2016 10:34:33 -0000 Mailing-List: contact dev-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list dev@flink.apache.org Received: (qmail 44462 invoked by uid 99); 19 Jan 2016 10:34:33 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2016 10:34:33 +0000 Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 870741A0323 for ; Tue, 19 Jan 2016 10:34:32 +0000 (UTC) Received: by mail-lb0-f178.google.com with SMTP id bc4so359919151lbc.2 for ; Tue, 19 Jan 2016 02:34:32 -0800 (PST) X-Gm-Message-State: ALoCoQmEQd8d4goY5cPc3jitKY60aJY4FijpE3QUU8dDzDVrsTduIHPNIMwYywYORzGeWno74rnlxp/V1V9a/bFHaRs/PliXCrXDkXDCMcN9Xt5MDdstVNM= X-Received: by 10.112.167.130 with SMTP id zo2mr8455795lbb.129.1453199669690; Tue, 19 Jan 2016 02:34:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.167.73 with HTTP; Tue, 19 Jan 2016 02:34:10 -0800 (PST) In-Reply-To: <1453199276624-9911.post@n3.nabble.com> References: <1453199276624-9911.post@n3.nabble.com> From: Maximilian Michels Date: Tue, 19 Jan 2016 11:34:10 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: What is the topic & offset used for in KeyedDeserializationSchema.deserialize()? To: dev@flink.apache.org Content-Type: text/plain; charset=UTF-8 Hi Gordon, You may use "topic" and "offset" for whatever you like. Note that this is just an interface. If it does not work for your Kinesis adapter, you may create a new interface. For existing usage of the KeyedDeserializationSchema, please have a look at the FlinkKafkaConsumer. Cheers, Max On Tue, Jan 19, 2016 at 11:27 AM, Tzu-Li (Gordon) Tai wrote: > Hi devs, > > I need a little help on clarification of what the arguments "topic" and > "offset" is used for in KeyedDeserializationSchema.deserialize(). The main > issue is that I'm currently in progress of implementing Flink Kinesis > Consumer, and Kinesis offsets, unlike Kafka offsets which are incremental > starting from 0, are digits that can only by stored in BigIntegers and > generally doesn't increment by 1 between each data record. > > Just need to make sure that I won't be messing things up with these two > values. A point to any part of the codebase where I can understand how Flink > uses "topic" and "offset" in the deserialization schema would be perfect. > > Many thanks in advance! > > Cheers, > Gordon > > > > -- > View this message in context: http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/What-is-the-topic-offset-used-for-in-KeyedDeserializationSchema-deserialize-tp9911.html > Sent from the Apache Flink Mailing List archive. mailing list archive at Nabble.com.