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 AA1D811593 for ; Wed, 9 Jul 2014 08:09:17 +0000 (UTC) Received: (qmail 15527 invoked by uid 500); 9 Jul 2014 08:09:17 -0000 Delivered-To: apmail-flink-dev-archive@flink.apache.org Received: (qmail 15474 invoked by uid 500); 9 Jul 2014 08:09:17 -0000 Mailing-List: contact dev-help@flink.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.incubator.apache.org Delivered-To: mailing list dev@flink.incubator.apache.org Received: (qmail 15462 invoked by uid 99); 9 Jul 2014 08:09:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 08:09:17 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of reckoner42@gmail.com designates 209.85.128.173 as permitted sender) Received: from [209.85.128.173] (HELO mail-ve0-f173.google.com) (209.85.128.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 08:09:11 +0000 Received: by mail-ve0-f173.google.com with SMTP id db11so6860351veb.32 for ; Wed, 09 Jul 2014 01:08:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=LS+47/BTSi9Oh/ym8wITEhzkX+jYGToCpvdZLuDBtWg=; b=OQstGLaOosNsY1V4E0swdsPY9LfB5DxtQk/Oy6H1SqVKxv/0C8dX/9585oiIooSAJW yADy2PWkapyvOcfaYa/4O1wmZT87lRSf8Qpks4RL4nhCnh/fuk6VwrBwckr5rs/W1TpP hgLcLnos7654a5wwxjbNqMlGAkZTwW/4kaLBzh0rElyylFYLTcilwhk8sqwvyUzIZxaq n6N2iqVFi14OluhH3UJeyttf6ZvQNukbC3RkLLRcbQV7sIr/pEe+liKsTU7+SI8+AFAx efC0W5F4VUyImUCYwkB76v1MsCFDeEWpeijf42MSpup1S2K+40F3qGO0p7LWkqGryU9t sJ6g== MIME-Version: 1.0 X-Received: by 10.52.157.41 with SMTP id wj9mr31393203vdb.1.1404893330994; Wed, 09 Jul 2014 01:08:50 -0700 (PDT) Received: by 10.58.246.133 with HTTP; Wed, 9 Jul 2014 01:08:50 -0700 (PDT) Date: Wed, 9 Jul 2014 10:08:50 +0200 Message-ID: Subject: Support user code as anonymous inner classes in streaming API From: =?UTF-8?Q?Hermann_G=C3=A1bor?= To: dev@flink.incubator.apache.org Content-Type: multipart/alternative; boundary=089e0160baf4f0ff1704fdbe37d2 X-Virus-Checked: Checked by ClamAV on apache.org --089e0160baf4f0ff1704fdbe37d2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hey, We saw that the Flink API supports user code as anonymous classes, and we would like to support it too. So far we've been using the default Java serialization for serializing user codes and by default that cannot serialize (non-static) inner classes. It seems to me that UserCodeWrapper is the workaround for this, but I could not figure it how to wrap simply the user code (e.g. a MapFunction) and use it for serialization. Can you show us an example or give us some hints? Thanks for the help! Regards, G=C3=A1bor Hermann --089e0160baf4f0ff1704fdbe37d2--