private class HTable.CheckAndMutateBuilderImpl extends Object implements Table.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 |
---|---|
Table.CheckAndMutateBuilder |
ifMatches(CompareOperator compareOp,
byte[] value) |
Table.CheckAndMutateBuilder |
ifNotExists()
Check for lack of column.
|
private void |
preCheck() |
Table.CheckAndMutateBuilder |
qualifier(byte[] qualifier) |
boolean |
thenDelete(Delete delete) |
boolean |
thenMutate(RowMutations mutation) |
boolean |
thenPut(Put put) |
Table.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
CheckAndMutateBuilderImpl(byte[] row, byte[] family)
public Table.CheckAndMutateBuilder qualifier(byte[] qualifier)
qualifier
in interface Table.CheckAndMutateBuilder
qualifier
- column qualifier to check.public Table.CheckAndMutateBuilder timeRange(TimeRange timeRange)
timeRange
in interface Table.CheckAndMutateBuilder
timeRange
- timeRange to checkpublic Table.CheckAndMutateBuilder ifNotExists()
Table.CheckAndMutateBuilder
ifNotExists
in interface Table.CheckAndMutateBuilder
public Table.CheckAndMutateBuilder ifMatches(CompareOperator compareOp, byte[] value)
ifMatches
in interface Table.CheckAndMutateBuilder
compareOp
- comparison operator to usevalue
- the expected valueprivate void preCheck()
public boolean thenPut(Put put) throws IOException
thenPut
in interface Table.CheckAndMutateBuilder
put
- data to put if check succeedstrue
if the new put was executed, false
otherwise.IOException
public boolean thenDelete(Delete delete) throws IOException
thenDelete
in interface Table.CheckAndMutateBuilder
delete
- data to delete if check succeedstrue
if the new delete was executed, false
otherwise.IOException
public boolean thenMutate(RowMutations mutation) throws IOException
thenMutate
in interface Table.CheckAndMutateBuilder
mutation
- mutations to perform if check succeedsIOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.