hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Joseph Evans (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-8724) Add improved APIs for globbing
Date Mon, 27 Aug 2012 16:10:07 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-8724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Robert Joseph Evans updated HADOOP-8724:

    Attachment: HADOOP-8724.txt

I like the points that have been made so far, but I would prefer to discuss a real API over
a theoretical one.  The implementation still needs a lot of work but the existing tests so
far pass.

I am mostly interested in feedback about the APIs themselves.

In general there is a Glob class.  It is made up of a path and a pattern.  The Path is optional.
 If the Path was supplied and does not exist an exception will be thrown.  The pattern is
required.  A Glob can also be created from just a Path, but that is mostly for backwards compatibility.
 In most cases I would expect a Glob to be created with just a pattern.

The result of running a glob is a GlobResult which is a RemoteIterator<FileStatus>,
but also provides some extra APIs so that someone can easily tell if nothing matched the glob,
or (and this this impl is a real hack right now) the glob looked more like a path then a glob.
 This is only really needed by PathData so the shell can adjust the error message appropriately.
> 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
>         Attachments: HADOOP-8724.txt
> 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

View raw message