Java Code Examples for org.apache.hadoop.hbase.CellUtil#isDeleteFamily()

The following examples show how to use org.apache.hadoop.hbase.CellUtil#isDeleteFamily() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SepEventRowData.java    From hbase-indexer with Apache License 2.0 6 votes vote down vote up
/**
 * Makes a HBase Result object based on the KeyValue's from the SEP event. Usually, this will only be used in
 * situations where only new data is written (or updates are complete row updates), so we don't expect any
 * delete-type key-values, but just to be sure we filter them out.
 */
@Override
public Result toResult() {

    List<Cell> filteredKeyValues = Lists.newArrayListWithCapacity(sepEvent.getKeyValues().size());

    for (Cell kv : getKeyValues()) {
        if (!CellUtil.isDelete(kv) && !CellUtil.isDeleteFamily(kv)) {
            filteredKeyValues.add(kv);
        }
    }

    // A Result object requires that the KeyValues are sorted (e.g., it does binary search on them)
    Collections.sort(filteredKeyValues, KeyValue.COMPARATOR);
    return Result.create(filteredKeyValues);
}
 
Example 2
Source File: CompactorScanner.java    From phoenix-omid with Apache License 2.0 4 votes vote down vote up
@VisibleForTesting
public boolean shouldRetainNonTransactionallyDeletedCell(Cell cell) {
    return (CellUtil.isDelete(cell) || CellUtil.isDeleteFamily(cell))
            &&
            retainNonTransactionallyDeletedCells;
}
 
Example 3
Source File: TransactionProcessor.java    From phoenix-tephra with Apache License 2.0 4 votes vote down vote up
private boolean isFamilyDelete(List<Cell> familyCells) {
  return familyCells.size() == 1 && CellUtil.isDeleteFamily(familyCells.get(0));
}
 
Example 4
Source File: TransactionProcessor.java    From phoenix-tephra with Apache License 2.0 4 votes vote down vote up
private boolean isFamilyDelete(List<Cell> familyCells) {
  return familyCells.size() == 1 && CellUtil.isDeleteFamily(familyCells.get(0));
}
 
Example 5
Source File: TransactionProcessor.java    From phoenix-tephra with Apache License 2.0 4 votes vote down vote up
private boolean isFamilyDelete(List<Cell> familyCells) {
  return familyCells.size() == 1 && CellUtil.isDeleteFamily(familyCells.get(0));
}
 
Example 6
Source File: TransactionProcessor.java    From phoenix-tephra with Apache License 2.0 4 votes vote down vote up
private boolean isFamilyDelete(List<Cell> familyCells) {
  return familyCells.size() == 1 && CellUtil.isDeleteFamily(familyCells.get(0));
}
 
Example 7
Source File: TransactionProcessor.java    From phoenix-tephra with Apache License 2.0 4 votes vote down vote up
private boolean isFamilyDelete(List<Cell> familyCells) {
  return familyCells.size() == 1 && CellUtil.isDeleteFamily(familyCells.get(0));
}
 
Example 8
Source File: TransactionProcessor.java    From phoenix-tephra with Apache License 2.0 4 votes vote down vote up
private boolean isFamilyDelete(List<Cell> familyCells) {
  return familyCells.size() == 1 && CellUtil.isDeleteFamily(familyCells.get(0));
}
 
Example 9
Source File: TransactionProcessor.java    From phoenix-tephra with Apache License 2.0 4 votes vote down vote up
private boolean isFamilyDelete(List<Cell> familyCells) {
  return familyCells.size() == 1 && CellUtil.isDeleteFamily(familyCells.get(0));
}
 
Example 10
Source File: TransactionProcessor.java    From phoenix-tephra with Apache License 2.0 4 votes vote down vote up
private boolean isFamilyDelete(List<Cell> familyCells) {
  return familyCells.size() == 1 && CellUtil.isDeleteFamily(familyCells.get(0));
}