Zheng Shao wrote:
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.

Use the Apache Harmony code
http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/

Reply via email to