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 D679F200C25 for ; Fri, 24 Feb 2017 08:32:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D515B160B69; Fri, 24 Feb 2017 07:32:49 +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 2434E160B5C for ; Fri, 24 Feb 2017 08:32:48 +0100 (CET) Received: (qmail 6352 invoked by uid 500); 24 Feb 2017 07:32:48 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 6343 invoked by uid 99); 24 Feb 2017 07:32:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2017 07:32:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D07AB18E16A for ; Fri, 24 Feb 2017 07:32:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.547 X-Spam-Level: X-Spam-Status: No, score=-1.547 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-2.999, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id A3d6zAjsKhCL for ; Fri, 24 Feb 2017 07:32:47 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 80ECC5FBBD for ; Fri, 24 Feb 2017 07:32:46 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D4C60E0986 for ; Fri, 24 Feb 2017 07:32:44 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4971B2413E for ; Fri, 24 Feb 2017 07:32:44 +0000 (UTC) Date: Fri, 24 Feb 2017 07:32:44 +0000 (UTC) From: "Aviem Zur (JIRA)" To: commits@beam.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (BEAM-1446) Create should take a TypeDescriptor as an alternative to explicitly specifying the Coder MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 24 Feb 2017 07:32:50 -0000 [ https://issues.apache.org/jira/browse/BEAM-1446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aviem Zur reassigned BEAM-1446: ------------------------------- Assignee: Aviem Zur > Create should take a TypeDescriptor as an alternative to explicitly specifying the Coder > ---------------------------------------------------------------------------------------- > > Key: BEAM-1446 > URL: https://issues.apache.org/jira/browse/BEAM-1446 > Project: Beam > Issue Type: Improvement > Components: sdk-java-core > Reporter: Thomas Groh > Assignee: Aviem Zur > Priority: Minor > > {{getDefaultCreateCoder}} is provided with the Pipeline's {{CoderRegistry}}, which enables it to use standard Coder Inference. For the construction of the Default Create Coder, explicitly providing the TypeDescriptor allows it to ask the CoderRegistry directly rather than attempting to reconstruct the TypeDescriptor based on the elements within the Create. > This also makes some coder specifications significantly more terse, as the type signature must be respecified but the entire coder need not be constructed (e.g. {{KvCoder.of(VarIntCoder.of(), StringUtf8Coder.of());}} becomes {{new TypeDescriptor>() {};}}, which is at least somewhat simpler to type out. -- This message was sent by Atlassian JIRA (v6.3.15#6346)