|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hbase.async.HBaseRpc
org.hbase.async.DeleteRequest
public final class DeleteRequest
Deletes some data into HBase.
byte arrays in argumentbyte[] in argument will copy it.
For more info, please refer to the documentation of HBaseRpc.
Strings in argumenttimestamps in argumentDeleteRequest
that is created with a specific timestamp in argument will only delete
values in HBase that were previously stored with a timestamp less than
or equal to that of the DeleteRequest.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.hbase.async.HBaseRpc |
|---|
HBaseRpc.HasFamily, HBaseRpc.HasKey, HBaseRpc.HasQualifier, HBaseRpc.HasQualifiers, HBaseRpc.HasTable, HBaseRpc.HasTimestamp, HBaseRpc.HasValue, HBaseRpc.HasValues |
| Constructor Summary | |
|---|---|
DeleteRequest(byte[] table,
byte[] key)
Constructor to delete an entire row. |
|
DeleteRequest(byte[] table,
byte[] key,
byte[] family)
Constructor to delete a specific family. |
|
DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[] qualifier)
Constructor to delete a specific cell. |
|
DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[][] qualifiers)
Constructor to delete a specific number of cells in a row. |
|
DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[][] qualifiers,
long timestamp)
Constructor to delete a specific number of cells in a row. |
|
DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[][] qualifiers,
long timestamp,
RowLock lock)
Constructor to delete a specific number of cells in a row with a row lock. |
|
DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[][] qualifiers,
RowLock lock)
Constructor to delete a specific number of cells in a row. |
|
DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[] qualifier,
long timestamp)
Constructor to delete a specific cell before a specific timestamp. |
|
DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[] qualifier,
long timestamp,
RowLock lock)
Constructor to delete a specific cell with an explicit row lock. |
|
DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[] qualifier,
RowLock lock)
Constructor to delete a specific cell with an explicit row lock. |
|
DeleteRequest(byte[] table,
byte[] key,
byte[] family,
long timestamp)
Constructor to delete a specific family before a specific timestamp. |
|
DeleteRequest(byte[] table,
byte[] key,
long timestamp)
Constructor to delete an entire row before a specific timestamp. |
|
DeleteRequest(byte[] table,
KeyValue kv)
Constructor to delete a specific cell. |
|
DeleteRequest(byte[] table,
KeyValue kv,
RowLock lock)
Constructor to delete a specific cell with an explicit row lock. |
|
DeleteRequest(String table,
String key)
Constructor to delete an entire row. |
|
DeleteRequest(String table,
String key,
String family)
Constructor to delete a specific family. |
|
DeleteRequest(String table,
String key,
String family,
String qualifier)
Constructor to delete a specific cell. |
|
DeleteRequest(String table,
String key,
String family,
String qualifier,
RowLock lock)
Constructor to delete a specific cell with an explicit row lock. |
|
| Method Summary | |
|---|---|
byte[] |
family()
Returns the family this RPC is for. |
byte[] |
key()
Returns the row key this RPC is for. |
byte[][] |
qualifiers()
Returns the column qualifiers this RPC is for. |
void |
setBufferable(boolean bufferable)
Sets whether or not this RPC is can be buffered on the client side. |
void |
setDurable(boolean durable)
Changes the durability setting of this edit. |
byte[] |
table()
Returns the name of the table this RPC is for. |
long |
timestamp()
Returns the strictly positive timestamp contained in this RPC. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.hbase.async.HBaseRpc.HasFamily |
|---|
family |
| Constructor Detail |
|---|
public DeleteRequest(byte[] table,
byte[] key)
table - The table to edit.key - The key of the row to edit in that table.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(byte[] table,
byte[] key,
long timestamp)
table - The table to edit.key - The key of the row to edit in that table.timestamp - The timestamp to set on this edit.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(byte[] table,
byte[] key,
byte[] family)
table - The table to edit.key - The key of the row to edit in that table.family - The column family to edit in that table.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(byte[] table,
byte[] key,
byte[] family,
long timestamp)
table - The table to edit.key - The key of the row to edit in that table.family - The column family to edit in that table.timestamp - The timestamp to set on this edit.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[] qualifier)
table - The table to edit.key - The key of the row to edit in that table.family - The column family to edit in that table.qualifier - The column qualifier to delete in that family.
Can be null since version 1.1.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[] qualifier,
long timestamp)
table - The table to edit.key - The key of the row to edit in that table.family - The column family to edit in that table.qualifier - The column qualifier to delete in that family.
Can be null, to delete the whole family.timestamp - The timestamp to set on this edit.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[][] qualifiers)
table - The table to edit.key - The key of the row to edit in that table.family - The column family to edit in that table.qualifiers - The column qualifiers to delete in that family.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[][] qualifiers,
long timestamp)
table - The table to edit.key - The key of the row to edit in that table.family - The column family to edit in that table.qualifiers - The column qualifiers to delete in that family.timestamp - The timestamp to set on this edit.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[] qualifier,
RowLock lock)
table - The table to edit.key - The key of the row to edit in that table.family - The column family to edit in that table.qualifier - The column qualifier to delete in that family.lock - An explicit row lock to use with this request.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[] qualifier,
long timestamp,
RowLock lock)
table - The table to edit.key - The key of the row to edit in that table.family - The column family to edit in that table.qualifier - The column qualifier to delete in that family.timestamp - The timestamp to set on this edit.lock - An explicit row lock to use with this request.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[][] qualifiers,
RowLock lock)
table - The table to edit.key - The key of the row to edit in that table.family - The column family to edit in that table.qualifiers - The column qualifiers to delete in that family.
Can be null.lock - An explicit row lock to use with this request.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(byte[] table,
byte[] key,
byte[] family,
byte[][] qualifiers,
long timestamp,
RowLock lock)
table - The table to edit.key - The key of the row to edit in that table.family - The column family to edit in that table.qualifiers - The column qualifiers to delete in that family.
Can be null.timestamp - The timestamp to set on this edit.lock - An explicit row lock to use with this request.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(String table,
String key)
table - The table to edit.key - The key of the row to edit in that table.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(String table,
String key,
String family)
table - The table to edit.key - The key of the row to edit in that table.family - The column family to edit in that table.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(String table,
String key,
String family,
String qualifier)
table - The table to edit.key - The key of the row to edit in that table.family - The column family to edit in that table.qualifier - The column qualifier to delete in that family.
Can be null since version 1.1.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(String table,
String key,
String family,
String qualifier,
RowLock lock)
table - The table to edit.key - The key of the row to edit in that table.family - The column family to edit in that table.qualifier - The column qualifier to delete in that family.
Can be null since version 1.1.lock - An explicit row lock to use with this request.
IllegalArgumentException - if any argument is malformed.
public DeleteRequest(byte[] table,
KeyValue kv)
table - The table to edit.kv - The specific KeyValue to delete. Note that if this
KeyValue specifies a timestamp, then this specific timestamp only
will be deleted.
public DeleteRequest(byte[] table,
KeyValue kv,
RowLock lock)
table - The table to edit.kv - The specific KeyValue to delete. Note that if this
KeyValue specifies a timestamp, then this specific timestamp only
will be deleted.lock - An explicit row lock to use with this request.| Method Detail |
|---|
public byte[] table()
HBaseRpc.HasTableDO NOT MODIFY THE CONTENTS OF THE ARRAY RETURNED.
table in interface HBaseRpc.HasTablepublic byte[] key()
HBaseRpc.HasKeyDO NOT MODIFY THE CONTENTS OF THE ARRAY RETURNED.
key in interface HBaseRpc.HasKeypublic byte[][] qualifiers()
HBaseRpc.HasQualifiersDO NOT MODIFY THE CONTENTS OF THE ARRAY RETURNED.
qualifiers in interface HBaseRpc.HasQualifierspublic String toString()
toString in class HBaseRpcpublic final void setBufferable(boolean bufferable)
true.
Setting this to false bypasses the client-side buffering, which
is used to send RPCs in batches for greater throughput, and causes this
RPC to be sent directly to the server.
bufferable - Whether or not this RPC can be buffered (i.e. delayed)
before being sent out to HBase.HBaseClient.setFlushInterval(short)public final void setDurable(boolean durable)
true.
Make sure you've read and understood the
data durability section before
setting this to false.
durable - Whether or not this edit should be stored with data
durability guarantee.public final byte[] family()
HBaseRpc.HasFamilyDO NOT MODIFY THE CONTENTS OF THE ARRAY RETURNED.
family in interface HBaseRpc.HasFamilypublic final long timestamp()
HBaseRpc.HasTimestamp
timestamp in interface HBaseRpc.HasTimestamp
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||