public static interface AsyncTable.CheckAndMutateBuilder
Modifier and Type | Method and Description |
---|---|
default AsyncTable.CheckAndMutateBuilder |
ifEquals(byte[] value)
Check for equality.
|
AsyncTable.CheckAndMutateBuilder |
ifMatches(CompareOperator compareOp,
byte[] value) |
AsyncTable.CheckAndMutateBuilder |
ifNotExists()
Check for lack of column.
|
AsyncTable.CheckAndMutateBuilder |
qualifier(byte[] qualifier) |
CompletableFuture<Boolean> |
thenDelete(Delete delete) |
CompletableFuture<Boolean> |
thenMutate(RowMutations mutation) |
CompletableFuture<Boolean> |
thenPut(Put put) |
AsyncTable.CheckAndMutateBuilder |
timeRange(TimeRange timeRange) |
AsyncTable.CheckAndMutateBuilder qualifier(byte[] qualifier)
qualifier
- column qualifier to check.AsyncTable.CheckAndMutateBuilder timeRange(TimeRange timeRange)
timeRange
- time range to check.AsyncTable.CheckAndMutateBuilder ifNotExists()
default AsyncTable.CheckAndMutateBuilder ifEquals(byte[] value)
value
- the expected valueAsyncTable.CheckAndMutateBuilder ifMatches(CompareOperator compareOp, byte[] value)
compareOp
- comparison operator to usevalue
- the expected valueCompletableFuture<Boolean> thenPut(Put put)
put
- data to put if check succeedstrue
if the new put was executed, false
otherwise. The return value
will be wrapped by a CompletableFuture
.CompletableFuture<Boolean> thenDelete(Delete delete)
delete
- data to delete if check succeedstrue
if the new delete was executed, false
otherwise. The return
value will be wrapped by a CompletableFuture
.CompletableFuture<Boolean> thenMutate(RowMutations mutation)
mutation
- mutations to perform if check succeedsCompletableFuture
.Copyright © 2007–2019 Cloudera. All rights reserved.