本文整理了Java中org.apache.hadoop.hbase.regionserver.Store.rollback()
方法的一些代码示例,展示了Store.rollback()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Store.rollback()
方法的具体详情如下:
包路径:org.apache.hadoop.hbase.regionserver.Store
类名称:Store
方法名:rollback
[英]Removes a Cell from the memstore. The Cell is removed only if its key & memstoreTS match the key & memstoreTS value of the cell parameter.
[中]从memstore中删除一个单元格。只有当单元格的key&memstores与单元格参数的key&memstores值匹配时,才会删除该单元格。
代码示例来源:origin: co.cask.hbase/hbase
store.rollback(kv);
kvsRolledback++;
代码示例来源:origin: harbby/presto-connectors
/**
* Remove all the keys listed in the map from the memstore. This method is
* called when a Put/Delete has updated memstore but subsequently fails to update
* the wal. This method is then invoked to rollback the memstore.
*/
private void rollbackMemstore(List<Cell> memstoreCells) {
int kvsRolledback = 0;
for (Cell cell : memstoreCells) {
byte[] family = CellUtil.cloneFamily(cell);
Store store = getStore(family);
store.rollback(cell);
kvsRolledback++;
}
LOG.debug("rollbackMemstore rolled back " + kvsRolledback);
}
代码示例来源:origin: co.cask.hbase/hbase
store.rollback(kv);
kvsRolledback++;
代码示例来源:origin: harbby/presto-connectors
for (CellScanner cellScanner = m.cellScanner(); cellScanner.advance();) {
Cell cell = cellScanner.current();
getStore(cell).rollback(cell);
内容来源于网络,如有侵权,请联系作者删除!