[ 
https://issues.apache.org/jira/browse/HADOOP-6476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kay Kay updated HADOOP-6476:
----------------------------

    Attachment: HADOOP-6476.patch

clear() method added javadoc , explaining the internals w.r.t resource release. 

setCapacity() added. 


See 
http://mail-archives.apache.org/mod_mbox/hadoop-common-dev/201001.mbox/%3c937f7ea3-83d0-4bd3-850c-a3f128d13...@apache.org%3e
 , for more details 

> o.a.h.io.Text - setCapacity does not shrink size 
> -------------------------------------------------
>
>                 Key: HADOOP-6476
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6476
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Kay Kay
>             Fix For: 0.21.0
>
>         Attachments: HADOOP-6476.patch, HADOOP-6476.patch, HADOOP-6476.patch
>
>
> The internal byte array of o.a.h.io.Text does not shrink , if we set a 
> capacity that is less than the size of the internal byte array. 
> * If input length for setCapacity < length of byte array - then the byte 
> array is reset. 
> * Existing data is retained depending on if keepData variable is set. 
> * 4 new test cases added for various capacity sizes 

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

Reply via email to