private class HTable.CheckAndMutateWithFilterBuilderImpl extends Object implements Table.CheckAndMutateWithFilterBuilder
Modifier and Type | Field and Description |
---|---|
private Filter |
filter |
private byte[] |
row |
private TimeRange |
timeRange |
Constructor and Description |
---|
CheckAndMutateWithFilterBuilderImpl(byte[] row,
Filter filter) |
Modifier and Type | Method and Description |
---|---|
boolean |
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 |
thenPut(Put put)
Specify a Put to commit if the check succeeds.
|
Table.CheckAndMutateWithFilterBuilder |
timeRange(TimeRange timeRange)
Specify a timerange.
|
private final byte[] row
CheckAndMutateWithFilterBuilderImpl(byte[] row, Filter filter)
public Table.CheckAndMutateWithFilterBuilder timeRange(TimeRange timeRange)
Table.CheckAndMutateWithFilterBuilder
timeRange
in interface Table.CheckAndMutateWithFilterBuilder
timeRange
- timeRange to checkpublic boolean thenPut(Put put) throws IOException
Table.CheckAndMutateWithFilterBuilder
thenPut
in interface Table.CheckAndMutateWithFilterBuilder
put
- data to put if check succeedstrue
if the new put was executed, false
otherwise.IOException
public boolean thenDelete(Delete delete) throws IOException
Table.CheckAndMutateWithFilterBuilder
thenDelete
in interface Table.CheckAndMutateWithFilterBuilder
delete
- data to delete if check succeedstrue
if the new delete was executed, false
otherwise.IOException
public boolean thenMutate(RowMutations mutation) throws IOException
Table.CheckAndMutateWithFilterBuilder
thenMutate
in interface Table.CheckAndMutateWithFilterBuilder
mutation
- mutations to perform if check succeedsIOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.