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 "Arun C Murthy (JIRA)" <ji...@apache.org> on 2008/03/28 19:12:24 UTC
[jira] Commented: (HADOOP-3119) Text.getBytes()
[ https://issues.apache.org/jira/browse/HADOOP-3119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583119#action_12583119 ]
Arun C Murthy commented on HADOOP-3119:
---------------------------------------
Will updating the javadoc to say:
{noformat}
/**
* Returns the raw bytes; however, only data upto {@link #getLength()} is valid.
*/
public byte[] getBytes() {
// ...
}
{noformat}
work?
> Text.getBytes()
> ---------------
>
> Key: HADOOP-3119
> URL: https://issues.apache.org/jira/browse/HADOOP-3119
> Project: Hadoop Core
> Issue Type: Bug
> Affects Versions: 0.16.1
> Reporter: Andrew Gudkov
> Priority: Trivial
>
> As said in javadoc, Text.getBytes() returns "raw bytes", but nothing said that it returns *internal* array which length can be greater than Text.getLength().
> Maybe to provide toArray method, which will create new array of actual data?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.