hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arun C Murthy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-3414) Facility to query serializable types such as Writables for 'raw length'
Date Tue, 20 May 2008 00:06:57 GMT

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

Arun C Murthy commented on HADOOP-3414:

Sigh, we need to go further and tweak Writables too... we'd need to add a Writable.getSerializedLength.
Unfortunately Writable is an interface, we would have to make it an abstract class to play
the same trick as Serializer.getSize! Thoughts? *wink*

> Facility to query serializable types such as Writables for 'raw length'
> -----------------------------------------------------------------------
>                 Key: HADOOP-3414
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3414
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: io
>            Reporter: Arun C Murthy
> Currently we need to jump through hoops to get the 'raw length' of serializable types
for e.g. SequenceFile.Writer.append needs to copy the key/value into a buffer and then check
the buffer's size to figure the record/key/value lenghts. Obviously this can be improved to
do away with the extra copy if we had types which could be queried for it's raw-length.
> Thoughts?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message