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 857EF200B9F for ; Tue, 11 Oct 2016 18:24:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 846CE160AC3; Tue, 11 Oct 2016 16:24:22 +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 020F5160AF3 for ; Tue, 11 Oct 2016 18:24:21 +0200 (CEST) Received: (qmail 98933 invoked by uid 500); 11 Oct 2016 16:24:20 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 98488 invoked by uid 99); 11 Oct 2016 16:24:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2016 16:24:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 885492C4C77 for ; Tue, 11 Oct 2016 16:24:20 +0000 (UTC) Date: Tue, 11 Oct 2016 16:24:20 +0000 (UTC) From: "Ryan Blue (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AVRO-1605) Remove Jackson classes from public API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 11 Oct 2016 16:24:22 -0000 [ https://issues.apache.org/jira/browse/AVRO-1605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15565892#comment-15565892 ] Ryan Blue commented on AVRO-1605: --------------------------------- Because I don't think accessors are a good practice, I think that we should not add them unless there is a compelling reason and for those we do add we should have a plan for removing them. The current patch adds accessors where I don't think they are necessary. Getting the default value from a field should simply return the default as an Avro object. I don't think there's a performance penalty for that change, but we have benchmarks if we need to make sure that's the case. Another example is Accessor.parseJson. It's only used once and could easily be replaced with a new method: Schema.parseDefaultValue(String, Schema). I think the next steps are to try to remove as many as possible in this patch and have a good reason for the ones that remain. Does that sound reasonable? > Remove Jackson classes from public API > -------------------------------------- > > Key: AVRO-1605 > URL: https://issues.apache.org/jira/browse/AVRO-1605 > Project: Avro > Issue Type: Sub-task > Components: java > Affects Versions: 1.7.8 > Reporter: Tom White > Assignee: Gabor Szadovszky > Fix For: 1.9.0 > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)