private final class RawAsyncTableImpl.CheckAndMutateBuilderImpl extends Object implements AsyncTable.CheckAndMutateBuilder
Modifier and Type | Field and Description |
---|---|
private byte[] |
family |
private CompareOperator |
op |
private byte[] |
qualifier |
private byte[] |
row |
private TimeRange |
timeRange |
private byte[] |
value |
Constructor and Description |
---|
CheckAndMutateBuilderImpl(byte[] row,
byte[] family) |
Modifier and Type | Method and Description |
---|---|
AsyncTable.CheckAndMutateBuilder |
ifMatches(CompareOperator compareOp,
byte[] value) |
AsyncTable.CheckAndMutateBuilder |
ifNotExists()
Check for lack of column.
|
private void |
preCheck() |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ifEquals
private final byte[] row
private final byte[] family
private byte[] qualifier
private CompareOperator op
private byte[] value
public CheckAndMutateBuilderImpl(byte[] row, byte[] family)
public AsyncTable.CheckAndMutateBuilder qualifier(byte[] qualifier)
qualifier
in interface AsyncTable.CheckAndMutateBuilder
qualifier
- column qualifier to check.public AsyncTable.CheckAndMutateBuilder timeRange(TimeRange timeRange)
timeRange
in interface AsyncTable.CheckAndMutateBuilder
timeRange
- time range to check.public AsyncTable.CheckAndMutateBuilder ifNotExists()
AsyncTable.CheckAndMutateBuilder
ifNotExists
in interface AsyncTable.CheckAndMutateBuilder
public AsyncTable.CheckAndMutateBuilder ifMatches(CompareOperator compareOp, byte[] value)
ifMatches
in interface AsyncTable.CheckAndMutateBuilder
compareOp
- comparison operator to usevalue
- the expected valueprivate void preCheck()
public CompletableFuture<Boolean> thenPut(Put put)
thenPut
in interface AsyncTable.CheckAndMutateBuilder
put
- data to put if check succeedstrue
if the new put was executed, false
otherwise. The return value
will be wrapped by a CompletableFuture
.public CompletableFuture<Boolean> thenDelete(Delete delete)
thenDelete
in interface AsyncTable.CheckAndMutateBuilder
delete
- data to delete if check succeedstrue
if the new delete was executed, false
otherwise. The return
value will be wrapped by a CompletableFuture
.public CompletableFuture<Boolean> thenMutate(RowMutations mutation)
thenMutate
in interface AsyncTable.CheckAndMutateBuilder
mutation
- mutations to perform if check succeedsCompletableFuture
.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.