欢迎投稿

今日深度:

HBase处理中文字符串,hbase中文字符串

HBase处理中文字符串,hbase中文字符串


使用HBase API时不要使用str.getBytes将String转化为byte[] ,而应该使用Bytes.toBytes(str);同样使用Bytes.toString(bytes);完成逆向转换。


作者:Pirate Leo

 http://blog.csdn.net/pirateleo/

转载请注明出处,谢谢。

文中可能涉及到的API:

Hadoop/HDFS:http://hadoop.apache.org/common/docs/current/api/

Hbase: http://hbase.apache.org/apidocs/index.html?overview-summary.html


www.htsjk.Com true http://www.htsjk.com/hbase/26043.html NewsArticle HBase处理中文字符串,hbase中文字符串 使用HBase API时不要使用str.getBytes将String转化为byte[] ,而应该使用Bytes.toBytes(str);同样使用Bytes.toString(bytes);完成逆向转换。 作者:Pirate Leo   http:...
相关文章
    暂无相关文章
评论暂时关闭