Package org.apache.hadoop.hbase.client
Class CheckAndMutate.Builder
java.lang.Object
org.apache.hadoop.hbase.client.CheckAndMutate.Builder
- Enclosing class:
- CheckAndMutate
A builder class for building a CheckAndMutate object.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionBuild the CheckAndMutate object with an Append to commit if the check succeeds.Build the CheckAndMutate objectBuild the CheckAndMutate object with an Increment to commit if the check succeeds.Build the CheckAndMutate objectbuild
(RowMutations mutations) Build the CheckAndMutate object with a RowMutations to commit if the check succeeds.ifEquals
(byte[] family, byte[] qualifier, byte[] value) Check for equalityifMatches
(byte[] family, byte[] qualifier, CompareOperator compareOp, byte[] value) Check for matchCheck for matchifNotExists
(byte[] family, byte[] qualifier) Check for lack of columnprivate void
Specify a timerange
-
Field Details
-
row
-
family
-
qualifier
-
op
-
value
-
filter
-
timeRange
-
-
Constructor Details
-
Builder
-
-
Method Details
-
ifNotExists
Check for lack of column- Parameters:
family
- family to checkqualifier
- qualifier to check- Returns:
- the CheckAndMutate object
-
ifEquals
Check for equality- Parameters:
family
- family to checkqualifier
- qualifier to checkvalue
- the expected value- Returns:
- the CheckAndMutate object
-
ifMatches
public CheckAndMutate.Builder ifMatches(byte[] family, byte[] qualifier, CompareOperator compareOp, byte[] value) Check for match- Parameters:
family
- family to checkqualifier
- qualifier to checkcompareOp
- comparison operator to usevalue
- the expected value- Returns:
- the CheckAndMutate object
-
ifMatches
Check for match- Parameters:
filter
- filter to check- Returns:
- the CheckAndMutate object
-
timeRange
Specify a timerange- Parameters:
timeRange
- time range to check- Returns:
- the CheckAndMutate object
-
preCheck
-
build
Build the CheckAndMutate object- Parameters:
put
- data to put if check succeeds- Returns:
- a CheckAndMutate object
-
build
Build the CheckAndMutate object- Parameters:
delete
- data to delete if check succeeds- Returns:
- a CheckAndMutate object
-
build
Build the CheckAndMutate object with an Increment to commit if the check succeeds.- Parameters:
increment
- data to increment if check succeeds- Returns:
- a CheckAndMutate object
-
build
Build the CheckAndMutate object with an Append to commit if the check succeeds.- Parameters:
append
- data to append if check succeeds- Returns:
- a CheckAndMutate object
-
build
Build the CheckAndMutate object with a RowMutations to commit if the check succeeds.- Parameters:
mutations
- mutations to perform if check succeeds- Returns:
- a CheckAndMutate object
-