php通過thrift讀取hbase數(shù)據(jù)之scanner學(xué)習(xí)
在使用scannerWithStop方法時(shí)遇到一個(gè)問題,代碼如下:
Php代碼- 1.$tableName = "table";
- 2.$beginRow = 0000001;
- 3.$endRow = 0000003;
- 4.$column = "column:";
- 5.$scanner = $hbaseClient -> scannerWithStop($tableName,$beginRow,$endRow,$column);
- $tableName = "table";
- $beginRow = 0000001;
- $endRow = 0000003;
- $column = "column:";
- $scanner = $hbaseClient -> scannerWithStop($tableName,$beginRow,$endRow,$column);
復(fù)制代碼 當(dāng)獲取數(shù)據(jù)條目小于等于3時(shí),獲取數(shù)據(jù)條目是正確的,也就是說$endRow <= 0000003時(shí)獲取數(shù)據(jù)條目是正確的,但是當(dāng)$endRow=0000004時(shí),獲取數(shù)據(jù)條目仍然為3條數(shù)據(jù),所以將$endRow修改為0000005時(shí)獲取數(shù)據(jù)條目就為4條數(shù)據(jù)了。不知道有沒有遇到這個(gè)問題的程序員? |