|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.basho.riak.client.operations.DeleteObject
public class DeleteObject
An operation to delete some data item from Riak.
Use Bucket.delete(String) or Bucket.delete(Object) to create a delete operation.
Also look at DomainBucket.delete(Object) and DomainBucket.delete(String).
Bucket,
DomainBucket| Constructor Summary | |
|---|---|
DeleteObject(RawClient client,
String bucket,
String key,
Retrier retrier)
Create a DeleteOperation that delegates to
client to delete key from bucket
using retrier to handle failures. |
|
| Method Summary | |
|---|---|
DeleteObject |
dw(int dw)
|
DeleteObject |
dw(Quora dw)
|
DeleteObject |
dw(Quorum dw)
|
Void |
execute()
Uses the specified Retrier to call the specified
RawClient's delete with bucket, key and (if specified) the rest of the delete operation parameters. |
DeleteObject |
fetchBeforeDelete(boolean fetch)
If you want to provide a vclock to delete, but don't have one, setting this true will have the operation first perform a fetch (using the supplied r/pr parameters). |
DeleteObject |
pr(int pr)
|
DeleteObject |
pr(Quora pr)
|
DeleteObject |
pr(Quorum pr)
|
DeleteObject |
pw(int pw)
|
DeleteObject |
pw(Quora pw)
|
DeleteObject |
pw(Quorum pw)
|
DeleteObject |
r(int r)
|
DeleteObject |
r(Quora r)
|
DeleteObject |
r(Quorum r)
|
DeleteObject |
rw(int rw)
The read_write quorum for the delete operation |
DeleteObject |
rw(Quora rw)
The read_write quorum for the delete operation |
DeleteObject |
rw(Quorum rw)
The read_write quorum for the delete operation |
DeleteObject |
vclock(VClock vclock)
Provide a vclock to riak for the delete operation. |
DeleteObject |
w(int w)
|
DeleteObject |
w(Quora w)
|
DeleteObject |
w(Quorum w)
|
DeleteObject |
withRetrier(Retrier retrier)
Set Retrier to use when executing this delete operation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeleteObject(RawClient client,
String bucket,
String key,
Retrier retrier)
DeleteOperation that delegates to
client to delete key from bucket
using retrier to handle failures. Use
Bucket.delete(String) or Bucket.delete(Object) to create
a delete operation.
client - the RawClient to usebucket - the bucket for the key to deletekey - the key of the item to deleteretrier - the Retrier to use for the delete operation| Method Detail |
|---|
public Void execute()
throws RiakException
Retrier to call the specified
RawClient's delete with bucket, key and (if specified) the rest of the delete operation parameters.
If fetchBeforeDelete is true, then a fetch is performed first to get a vclock.
execute in interface RiakOperation<Void>RiakExceptionpublic DeleteObject r(int r)
r - the read quorum for the delete operation
public DeleteObject r(Quora r)
r - the read quorum for the delete operation
public DeleteObject r(Quorum r)
r - the read quorum for the delete operation
public DeleteObject pr(int pr)
pr - the primary read quorum for the delete operation
public DeleteObject pr(Quora pr)
pr - the primary read quorum for the delete operation
public DeleteObject pr(Quorum pr)
pr - the primary read quorum for the delete operation
public DeleteObject w(int w)
w - the write quorum for the delete tombstone
public DeleteObject w(Quora w)
w - the write quorum for the delete tombstone
public DeleteObject w(Quorum w)
w - the write quorum for the delete tombstone
public DeleteObject dw(int dw)
dw - the durable write quorum for the delete tombstone
public DeleteObject dw(Quora dw)
dw - the durable write quorum for the delete tombstone
public DeleteObject dw(Quorum dw)
dw - the durable write quorum for the delete tombstone
public DeleteObject pw(int pw)
pw - the primary write quorum for the delete tombstone
public DeleteObject pw(Quora pw)
pw - the primary write quorum for the delete tombstone
public DeleteObject pw(Quorum pw)
pw - the primary write quorum for the delete tombstone
public DeleteObject rw(int rw)
rw - an Integer for the read/write quorum
public DeleteObject rw(Quora rw)
rw - an Integer for the read/write quorum
public DeleteObject rw(Quorum rw)
rw - an Integer for the read/write quorum
public DeleteObject vclock(VClock vclock)
NOTE: you can, instead, fetchBeforeDelete to get a vclock
vclock -
fetchBeforeDeletepublic DeleteObject withRetrier(Retrier retrier)
Retrier to use when executing this delete operation
retrier - a Retrier
public DeleteObject fetchBeforeDelete(boolean fetch)
fetch - true true to fetch before delete, false if not
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||