@InterfaceAudience.Public @InterfaceStability.Evolving public final class CheckAndMutate extends Object implements Row
Use the builder class to instantiate a CheckAndMutate object. This builder class is fluent style APIs, the code are like:
 
 // A CheckAndMutate operation where do the specified action if the column (specified by the
 // family and the qualifier) of the row equals to the specified value
 CheckAndMutate checkAndMutate = CheckAndMutate.newBuilder(row)
   .ifEquals(family, qualifier, value)
   .build(put);
 // A CheckAndMutate operation where do the specified action if the column (specified by the
 // family and the qualifier) of the row doesn't exist
 CheckAndMutate checkAndMutate = CheckAndMutate.newBuilder(row)
   .ifNotExists(family, qualifier)
   .build(put);
 // A CheckAndMutate operation where do the specified action if the row matches the filter
 CheckAndMutate checkAndMutate = CheckAndMutate.newBuilder(row)
   .ifMatches(filter)
   .build(delete);
 
 | Modifier and Type | Class and Description | 
|---|---|
| static class  | CheckAndMutate.BuilderA builder class for building a CheckAndMutate object. | 
COMPARATOR| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(Row row) | 
| boolean | equals(Object obj) | 
| Row | getAction() | 
| CompareOperator | getCompareOp() | 
| byte[] | getFamily() | 
| Filter | getFilter() | 
| byte[] | getQualifier() | 
| byte[] | getRow() | 
| TimeRange | getTimeRange() | 
| byte[] | getValue() | 
| boolean | hasFilter() | 
| int | hashCode() | 
| static CheckAndMutate.Builder | newBuilder(byte[] row)returns a builder object to build a CheckAndMutate object | 
public static CheckAndMutate.Builder newBuilder(byte[] row)
row - rowpublic int compareTo(Row row)
compareTo in interface Comparable<Row>compareTo in interface Rowpublic byte[] getFamily()
public byte[] getQualifier()
public CompareOperator getCompareOp()
public byte[] getValue()
public Filter getFilter()
public boolean hasFilter()
public TimeRange getTimeRange()
public Row getAction()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.