Return-Path: X-Original-To: apmail-crunch-dev-archive@www.apache.org Delivered-To: apmail-crunch-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 DED9710C18 for ; Mon, 3 Mar 2014 04:13:34 +0000 (UTC) Received: (qmail 6411 invoked by uid 500); 3 Mar 2014 04:13:34 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 6323 invoked by uid 500); 3 Mar 2014 04:13:28 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 5807 invoked by uid 500); 3 Mar 2014 04:13:23 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 5785 invoked by uid 99); 3 Mar 2014 04:13:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2014 04:13:22 +0000 Date: Mon, 3 Mar 2014 04:13:21 +0000 (UTC) From: "Micah Whitacre (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CRUNCH-357) Allow AvroMode overrides to be less global MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CRUNCH-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Micah Whitacre updated CRUNCH-357: ---------------------------------- Attachment: CRUNCH-357_immutable_with_doctests.patch Building off of [~gabriel.reid], added doc, junits, and deprecation warnings for AvroMode. > Allow AvroMode overrides to be less global > ------------------------------------------ > > Key: CRUNCH-357 > URL: https://issues.apache.org/jira/browse/CRUNCH-357 > Project: Crunch > Issue Type: Improvement > Components: Core, IO > Reporter: Micah Whitacre > Assignee: Micah Whitacre > Attachments: CRUNCH-357.patch, CRUNCH-357_immutable.patch, CRUNCH-357_immutable_with_doctests.patch > > > Currently consumers wanting to specify a custom reader must globally override the ReaderFactory for a specific mode. This means that if one AvroFileSource changes the factory it could affect all other sources in the pipeline without anyone knowing it. > One thought was what if a consumer could get a "local" AvroMode instance, configure it to their needs and then specify that mode to the AvroFileSource to configure that source without changing any global state. -- This message was sent by Atlassian JIRA (v6.2#6252)