本文整理了Java中org.apache.hadoop.hbase.regionserver.Store.getScanner()
方法的一些代码示例,展示了Store.getScanner()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Store.getScanner()
方法的具体详情如下:
包路径:org.apache.hadoop.hbase.regionserver.Store
类名称:Store
方法名:getScanner
[英]Return a scanner for both the memstore and the HStore files. Assumes we are not in a compaction.
[中]返回memstore和HStore文件的扫描程序。假设我们没有处于压缩状态。
代码示例来源:origin: NGDATA/lilyproject
/**
* Do a small get/scan against one store. This is required because store
* has no actual methods of querying itself, and relies on StoreScanner.
*/
public static List<KeyValue> getFromStoreFile(Store store,
Get get) throws IOException {
MultiVersionConsistencyControl.resetThreadReadPoint();
Scan scan = new Scan(get);
InternalScanner scanner = (InternalScanner) store.getScanner(scan,
scan.getFamilyMap().get(store.getFamily().getName()));
List<KeyValue> result = new ArrayList<KeyValue>();
scanner.next(result);
if (!result.isEmpty()) {
// verify that we are on the row we want:
KeyValue kv = result.get(0);
if (!Bytes.equals(kv.getRow(), get.getRow())) {
result.clear();
}
}
scanner.close();
return result;
}
代码示例来源:origin: co.cask.hbase/hbase
scan.getFamilyMap().entrySet()) {
Store store = stores.get(entry.getKey());
KeyValueScanner scanner = store.getScanner(scan, entry.getValue());
if (this.filter == null || !scan.doLoadColumnFamiliesOnDemand()
|| FilterBase.isFamilyEssential(this.filter, entry.getKey())) {
代码示例来源:origin: harbby/presto-connectors
KeyValueScanner scanner;
try {
scanner = store.getScanner(scan, entry.getValue(), this.readPt);
} catch (FileNotFoundException e) {
throw handleFileNotFound(e);
内容来源于网络,如有侵权,请联系作者删除!