Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> Extending DFSInputStream class

Copy link to this message
Re: Extending DFSInputStream class
The way we have gotten around this in the past is extending and then
copying the private code and creating a brand new implementation.
On Thu, Sep 26, 2013 at 10:50 AM, Jay Vyas <[EMAIL PROTECTED]> wrote:

> This is actually somewhat common in some of the hadoop core classes :
> Private constructors and inner classes. I think in the long term jiras
> should be opened for these to make them public and pluggable with public
> parameterized constructors wherever possible, so that modularizations can
> be provided.
> On Thu, Sep 26, 2013 at 10:46 AM, Rob Blah <[EMAIL PROTECTED]> wrote:
>> Hi
>> I would like to wrap DFSInputStream by extension. However it seems that
>> the DFSInputStream constructor is package private. Is there anyway to
>> achieve my goal? Also just out of curiosity why you have made this class
>> inaccessible for developers, or am I missing something?
>> regards
>> tmp
> --
> Jay Vyas
> http://jayunit100.blogspot.com

Jay Vyas