[英]hbase how to scan with the key contains '\1'
我的rowkey就像u\\x01-1\\x012014-10-13 11:19:19\\x01984624111
一樣\\x01
表示\\1
。
我嘗試了\\x01
和\\1
,但是不起作用。如何掃描以“ u\\x01-1
” u\\x01-1
? java程序中是否有相同的問題?
嘗試這個 :
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);
}
輸出:
u
-1
2014-10-13 11:19:19
984624111
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.