hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daryn Sharp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8724) Add improved APIs for globbing
Date Mon, 27 Aug 2012 15:36:13 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-8724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13442474#comment-13442474
] 

Daryn Sharp commented on HADOOP-8724:
-------------------------------------

The issue is that user code doesn't know if the path is a glob, so {{listStatus}} is used
if the path is considered a literal, whereas {{globStatus}} handles both literals and globs.
 So code just calls {{globStatus}} if a glob is allowed.

A new {{Glob}} with a ctor that takes a regexp might be useful, but it has a few problems.
 How would it handle paths with multiple globs in it?  Variadic?  I might not understand your
full intent, but how would a user input provided path be decomposed?
                
> Add improved APIs for globbing
> ------------------------------
>
>                 Key: HADOOP-8724
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8724
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Robert Joseph Evans
>            Assignee: Robert Joseph Evans
>
> After the discussion on HADOOP-8709 it was decided that we need better APIs for globbing
to remove some of the inconsistencies with other APIs.  Inorder to maintain backwards compatibility
we should deprecate the existing APIs and add in new ones.
> See HADOOP-8709 for more information about exactly how those APIs should look and behave.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message