Package org.apache.hadoop.hbase.client
Class RawAsyncTableImpl.CheckAndMutateBuilderImpl
java.lang.Object
org.apache.hadoop.hbase.client.RawAsyncTableImpl.CheckAndMutateBuilderImpl
- All Implemented Interfaces:
AsyncTable.CheckAndMutateBuilder
- Enclosing class:
- RawAsyncTableImpl
private final class RawAsyncTableImpl.CheckAndMutateBuilderImpl
extends Object
implements AsyncTable.CheckAndMutateBuilder
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionifMatches
(CompareOperator compareOp, byte[] value) Compare a valueCheck for lack of column.private void
preCheck()
qualifier
(byte[] qualifier) Match a qualifier.thenDelete
(Delete delete) Specify a Delete to commit if the check succeeds.thenMutate
(RowMutations mutations) Specify a RowMutations to commit if the check succeeds.Specify a Put to commit if the check succeeds.Match a timerange.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.client.AsyncTable.CheckAndMutateBuilder
ifEquals
-
Field Details
-
row
-
family
-
qualifier
-
timeRange
-
op
-
value
-
-
Constructor Details
-
CheckAndMutateBuilderImpl
-
-
Method Details
-
qualifier
Description copied from interface:AsyncTable.CheckAndMutateBuilder
Match a qualifier.- Specified by:
qualifier
in interfaceAsyncTable.CheckAndMutateBuilder
- Parameters:
qualifier
- column qualifier to check.
-
timeRange
Description copied from interface:AsyncTable.CheckAndMutateBuilder
Match a timerange.- Specified by:
timeRange
in interfaceAsyncTable.CheckAndMutateBuilder
- Parameters:
timeRange
- time range to check.
-
ifNotExists
Description copied from interface:AsyncTable.CheckAndMutateBuilder
Check for lack of column.- Specified by:
ifNotExists
in interfaceAsyncTable.CheckAndMutateBuilder
-
ifMatches
Description copied from interface:AsyncTable.CheckAndMutateBuilder
Compare a value- Specified by:
ifMatches
in interfaceAsyncTable.CheckAndMutateBuilder
- Parameters:
compareOp
- comparison operator to usevalue
- the expected value
-
preCheck
-
thenPut
Description copied from interface:AsyncTable.CheckAndMutateBuilder
Specify a Put to commit if the check succeeds.- Specified by:
thenPut
in interfaceAsyncTable.CheckAndMutateBuilder
- Parameters:
put
- data to put if check succeeds- Returns:
true
if the new put was executed,false
otherwise. The return value will be wrapped by aCompletableFuture
.
-
thenDelete
Description copied from interface:AsyncTable.CheckAndMutateBuilder
Specify a Delete to commit if the check succeeds.- Specified by:
thenDelete
in interfaceAsyncTable.CheckAndMutateBuilder
- Parameters:
delete
- data to delete if check succeeds- Returns:
true
if the new delete was executed,false
otherwise. The return value will be wrapped by aCompletableFuture
.
-
thenMutate
Description copied from interface:AsyncTable.CheckAndMutateBuilder
Specify a RowMutations to commit if the check succeeds.- Specified by:
thenMutate
in interfaceAsyncTable.CheckAndMutateBuilder
- Parameters:
mutations
- mutations to perform if check succeeds- Returns:
- true if the new mutation was executed, false otherwise. The return value will be
wrapped by a
CompletableFuture
.
-