public static interface Table.CheckAndMutateBuilder
Modifier and Type | Method and Description |
---|---|
default Table.CheckAndMutateBuilder |
ifEquals(byte[] value)
Check for equality.
|
Table.CheckAndMutateBuilder |
ifMatches(CompareOperator compareOp,
byte[] value) |
Table.CheckAndMutateBuilder |
ifNotExists()
Check for lack of column.
|
Table.CheckAndMutateBuilder |
qualifier(byte[] qualifier) |
boolean |
thenDelete(Delete delete) |
boolean |
thenMutate(RowMutations mutation) |
boolean |
thenPut(Put put) |
Table.CheckAndMutateBuilder |
timeRange(TimeRange timeRange) |
Table.CheckAndMutateBuilder qualifier(byte[] qualifier)
qualifier
- column qualifier to check.Table.CheckAndMutateBuilder timeRange(TimeRange timeRange)
timeRange
- timeRange to checkTable.CheckAndMutateBuilder ifNotExists()
default Table.CheckAndMutateBuilder ifEquals(byte[] value)
value
- the expected valueTable.CheckAndMutateBuilder ifMatches(CompareOperator compareOp, byte[] value)
compareOp
- comparison operator to usevalue
- the expected valueboolean thenPut(Put put) throws IOException
put
- data to put if check succeedstrue
if the new put was executed, false
otherwise.IOException
boolean thenDelete(Delete delete) throws IOException
delete
- data to delete if check succeedstrue
if the new delete was executed, false
otherwise.IOException
boolean thenMutate(RowMutations mutation) throws IOException
mutation
- mutations to perform if check succeedsIOException
Copyright © 2007–2019 Cloudera. All rights reserved.