【发布时间】:2012-11-27 10:31:30
【问题描述】:
全部
我现在正在尝试使用 python thrift 客户端扫描 hbase 表。 我想要的是获得扫描行的所有版本。 但是在阅读了 HBase.py 文件(可以描述为 API 规范文件)后,我找不到合适的扫描仪 API 来执行此操作。
我发现的只有:
def scannerOpenWithScan(self, tableName, scan, attributes)
def scannerOpen(self, tableName, startRow, columns, attributes)
def scannerOpenWithStop(self, tableName, startRow, stopRow, columns, attributes)
def scannerOpenWithPrefix(self, tableName, startAndPrefix, columns, attributes)
def scannerOpenTs(self, tableName, startRow, columns, timestamp, attributes)
def scannerOpenWithStopTs(self, tableName, startRow, stopRow, columns, timestamp, attributes)
def scannerOpenWithTimeRange(self, tableName, startRow, stopRow, columns, startTime, endTime)
上面提到的所有 API 都不包含任何与版本相关的参数。
也许“属性”可以做一些事情,但我不知道如何使用它。
你有什么建议吗?
【问题讨论】: