[英]hbase how to scan with the key contains '\1'
my rowkey is like u\\x01-1\\x012014-10-13 11:19:19\\x01984624111
the \\x01
means \\1
. 我的rowkey就像
u\\x01-1\\x012014-10-13 11:19:19\\x01984624111
一样\\x01
表示\\1
。
I tried \\x01
and \\1
,but it not works.how can i scan start with " u\\x01-1
"? 我尝试了
\\x01
和\\1
,但是不起作用。如何扫描以“ u\\x01-1
” u\\x01-1
? is it the same problem in java program? java程序中是否有相同的问题?
try this : 尝试这个 :
String str="u\\x01-1\\x012014-10-13 11:19:19\\x01984624111";
String []data=str.split("\\\\x01");
for (String string : data) {
System.out.println(string);
}
output : 输出:
u
-1
2014-10-13 11:19:19
984624111
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.