Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 43909 invoked from network); 1 Jun 2010 20:01:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jun 2010 20:01:03 -0000 Received: (qmail 15947 invoked by uid 500); 1 Jun 2010 20:01:03 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 15912 invoked by uid 500); 1 Jun 2010 20:01:03 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 15904 invoked by uid 99); 1 Jun 2010 20:01:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 20:01:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 20:01:01 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o51K0eqb023194 for ; Tue, 1 Jun 2010 20:00:40 GMT Message-ID: <28918255.113891275422440006.JavaMail.jira@thor> Date: Tue, 1 Jun 2010 16:00:40 -0400 (EDT) From: "Eli Collins (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-6787) Factor out glob pattern code from FileContext and Filesystem In-Reply-To: <2758661.46911274829813581.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-6787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12874204#action_12874204 ] Eli Collins commented on HADOOP-6787: ------------------------------------- Looks good. Nit: not your change but public GlobFilter methods need javadocs, spaces in between the end of a method and start of the next. > Factor out glob pattern code from FileContext and Filesystem > ------------------------------------------------------------ > > Key: HADOOP-6787 > URL: https://issues.apache.org/jira/browse/HADOOP-6787 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Luke Lu > Assignee: Luke Lu > Fix For: 0.22.0 > > Attachments: hadoop-6787-trunk-v1.patch, hadoop-6787-y20s-v1.patch > > > The GlobFilter class (especially the error-prone setRegex method) is duplicated in both FileContext and Filesystem. And I'd like to be able to reuse the most of the setRegex code for glob pattern matching in metrics filter configurations. > We could at least factor out the hairy setRegex code and package them into a GlobPattern class with a minimum compile method. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.