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 Zheng Shao <zs...@facebook.com> on 2009/02/10 20:55:49 UTC
anybody knows an apache-license-compatible impl of Integer.parseInt?
We need to implement a version of Integer.parseInt/atoi from byte[] instead of String to avoid the high cost of creating a String object.
I wanted to take the open jdk code but the license is GPL:
http://www.docjar.com/html/api/java/lang/Integer.java.html
Does anybody know an implementation that I can use for hive (apache license)?
I also need to do it for Byte, Short, Long, and Double. Just don't want to go over all the corner cases.
Solutions from c/c++ are OK (as long as the license does not conflict). I can translate it.
Zheng
Re: anybody knows an apache-license-compatible impl of Integer.parseInt?
Posted by Doug Cutting <cu...@apache.org>.
Zheng Shao wrote:
> Does anybody know an implementation that I can use for hive (apache license)?
http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Integer.java?revision=732988
Doug