Class ThriftTable.CheckAndMutateBuilderImpl
java.lang.Object
org.apache.hadoop.hbase.thrift2.client.ThriftTable.CheckAndMutateBuilderImpl
- All Implemented Interfaces:
Table.CheckAndMutateBuilder
- Enclosing class:
- ThriftTable
private class ThriftTable.CheckAndMutateBuilderImpl
extends Object
implements Table.CheckAndMutateBuilder
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionifMatches
(CompareOperator compareOp, byte[] value) Check for match.Check for lack of column.private void
preCheck()
qualifier
(byte[] qualifier) Specify a column qualiferboolean
thenDelete
(Delete delete) Specify a Delete to commit if the check succeeds.boolean
thenMutate
(RowMutations mutation) Specify a RowMutations to commit if the check succeeds.boolean
Specify a Put to commit if the check succeeds.Specify a timerangeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.client.Table.CheckAndMutateBuilder
ifEquals
-
Field Details
-
row
-
family
-
qualifier
-
op
-
value
-
-
Constructor Details
-
CheckAndMutateBuilderImpl
CheckAndMutateBuilderImpl(byte[] row, byte[] family)
-
-
Method Details
-
qualifier
Description copied from interface:Table.CheckAndMutateBuilder
Specify a column qualifer- Specified by:
qualifier
in interfaceTable.CheckAndMutateBuilder
- Parameters:
qualifier
- column qualifier to check.
-
timeRange
Description copied from interface:Table.CheckAndMutateBuilder
Specify a timerange- Specified by:
timeRange
in interfaceTable.CheckAndMutateBuilder
- Parameters:
timeRange
- timeRange to check
-
ifNotExists
Description copied from interface:Table.CheckAndMutateBuilder
Check for lack of column.- Specified by:
ifNotExists
in interfaceTable.CheckAndMutateBuilder
-
ifMatches
Description copied from interface:Table.CheckAndMutateBuilder
Check for match.- Specified by:
ifMatches
in interfaceTable.CheckAndMutateBuilder
- Parameters:
compareOp
- comparison operator to usevalue
- the expected value
-
preCheck
-
thenPut
Description copied from interface:Table.CheckAndMutateBuilder
Specify a Put to commit if the check succeeds.- Specified by:
thenPut
in interfaceTable.CheckAndMutateBuilder
- Parameters:
put
- data to put if check succeeds- Returns:
true
if the new put was executed,false
otherwise.- Throws:
IOException
-
thenDelete
Description copied from interface:Table.CheckAndMutateBuilder
Specify a Delete to commit if the check succeeds.- Specified by:
thenDelete
in interfaceTable.CheckAndMutateBuilder
- Parameters:
delete
- data to delete if check succeeds- Returns:
true
if the new delete was executed,false
otherwise.- Throws:
IOException
-
thenMutate
Description copied from interface:Table.CheckAndMutateBuilder
Specify a RowMutations to commit if the check succeeds.- Specified by:
thenMutate
in interfaceTable.CheckAndMutateBuilder
- Parameters:
mutation
- mutations to perform if check succeeds- Returns:
- true if the new mutation was executed, false otherwise.
- Throws:
IOException
-