You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Jim Kellerman (JIRA)" <ji...@apache.org> on 2007/10/12 21:29:50 UTC

[jira] Commented: (HADOOP-2041) Add convenience put method that takes writable

    [ https://issues.apache.org/jira/browse/HADOOP-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534367 ] 

Jim Kellerman commented on HADOOP-2041:
---------------------------------------

Just to clarify the request, what I think you are proposing is adding:

public void put(long lockid, Text column, Writable val)

but you are not proposing to overload any of the get(...) methods or HScannerInterface.next
to return a Writable.

Overloading put is easy. Overloading get and next is hard because we currently do not store any type information for the value. All values are of type byte[]

If that is correct, then yes, we can add this in 0.16.0

> Add convenience put method that takes writable
> ----------------------------------------------
>
>                 Key: HADOOP-2041
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2041
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: contrib/hbase
>            Reporter: Johan Oskarsson
>            Assignee: Johan Oskarsson
>            Priority: Trivial
>
> It would be very useful to have a put method on HTable that takes a Writable instead of a byte array.

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