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, waitifEqualsprivate 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.CheckAndMutateBuilderqualifier - column qualifier to check.public Table.CheckAndMutateBuilder timeRange(TimeRange timeRange)
timeRange in interface Table.CheckAndMutateBuildertimeRange - timeRange to checkpublic Table.CheckAndMutateBuilder ifNotExists()
Table.CheckAndMutateBuilderifNotExists in interface Table.CheckAndMutateBuilderpublic Table.CheckAndMutateBuilder ifMatches(CompareOperator compareOp, byte[] value)
ifMatches in interface Table.CheckAndMutateBuildercompareOp - comparison operator to usevalue - the expected valueprivate void preCheck()
public boolean thenPut(Put put) throws IOException
thenPut in interface Table.CheckAndMutateBuilderput - data to put if check succeedstrue if the new put was executed, false otherwise.IOExceptionpublic boolean thenDelete(Delete delete) throws IOException
thenDelete in interface Table.CheckAndMutateBuilderdelete - data to delete if check succeedstrue if the new delete was executed, false otherwise.IOExceptionpublic boolean thenMutate(RowMutations mutation) throws IOException
thenMutate in interface Table.CheckAndMutateBuildermutation - mutations to perform if check succeedsIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.