hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Runping Qi (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-640) Text class constructor and setCopacity method
Date Wed, 25 Oct 2006 23:40:17 GMT
Text class constructor and setCopacity method

                 Key: HADOOP-640
                 URL: http://issues.apache.org/jira/browse/HADOOP-640
             Project: Hadoop
          Issue Type: Bug
          Components: mapred
            Reporter: Runping Qi

A couple of problems.

1. setCapacity may cause loss of the existing data, if the new len is bigger than the old
len of the byte array.

2. Text should provide a constructor like:

Text(byte[] data,  int len) {

Text(byte[] data, int start, int len) {

Text(byte[] data,  int len, boolean noCopying) {

The last one above allows to save the cost of data copy if the user wants the ownership of
data to be transferred to Text object

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message