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

Switch to Plain View
MapReduce, mail # user - Extending DFSInputStream class


+
Rob Blah 2013-09-26, 14:46
+
java8964 java8964 2013-09-26, 14:53
+
Rob Blah 2013-09-26, 15:03
+
Rob Blah 2013-10-03, 13:37
+
Jay Vyas 2013-09-26, 14:50
Copy link to this message
-
Re: Extending DFSInputStream class
Jay Vyas 2013-09-26, 14:50
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
http://jayunit100.blogspot.com