hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Rawson <ryano...@gmail.com>
Subject Re: Custom WritableByteArrayComparable crashing. Need help please (UNCLASSIFIED)
Date Mon, 14 Jun 2010 01:55:58 GMT
Because List is an interface, the deserialization probably uses an
ArrayList to hold the incoming objects.

-ryan

On Sat, Jun 12, 2010 at 12:15 PM, Ted Yu <yuzhihong@gmail.com> wrote:
> I meant to say why subclasses of List use code for List.class.
> There is no such handling for subclasses of WritableByteArrayComparable,
> Writable, etc.
>
> On Sat, Jun 12, 2010 at 9:54 AM, Stack <stack@duboce.net> wrote:
>
>> On Fri, Jun 11, 2010 at 10:09 PM, Ted Yu <yuzhihong@gmail.com> wrote:
>> > Why is List treated differently at line 267 in writeClassCode() ?
>>
>> Sorry Ted, different to what?
>>
>>
>> >      if ( List.class.isAssignableFrom(c)) {
>> >        code = CLASS_TO_CODE.get(List.class);
>> >      }
>> > I am wondering if the above logic should be applied to other classes in
>> > CLASS_TO_CODE.keySet().
>>
>>
>> Please say more.  I do not follow.
>>
>> Thanks,
>> St.Ack
>>
>>
>> >
>> > On Fri, Jun 11, 2010 at 11:14 AM, Stack <stack@duboce.net> wrote:
>> >
>> >> On Fri, Jun 11, 2010 at 10:55 AM, Todd Lipcon <todd@cloudera.com>
>> wrote:
>> >> >> One thing to keep in mind is that the server needs to know about
the
>> >> filter
>> >> >> you are using (it needs to be in a jar in the classpath).  You
also
>> may
>> >> need
>> >> >> to add it to HbaseObjectWritable.java so it can be sent across
the
>> RPC
>> >> >> layer.
>> >> >>
>> >> >>
>> >> > That should only be an efficiency thing, right?
>> >> >
>> >> It should just be efficency but its broke currently in that it has to
>> >> be in place (I filed HBASE-2666 a little while ago).
>> >> St.Ack
>> >>
>> >
>>
>

Mime
View raw message