public final class RowLockRequest extends HBaseRpc implements HBaseRpc.HasTable, HBaseRpc.HasKey
Row locks are no longer supported as of HBase 0.96.
While they can still be used with earlier HBase versions,
attempting to use them with HBase 0.95 and up will cause a
UnsupportedOperationException
to be thrown.
For a description of what row locks are, see RowLock
.
byte
arrays in argumentbyte[]
in argument will copy it.
For more info, please refer to the documentation of HBaseRpc
.
String
s in argumentHBaseRpc.HasFamily, HBaseRpc.HasKey, HBaseRpc.HasQualifier, HBaseRpc.HasQualifiers, HBaseRpc.HasTable, HBaseRpc.HasTimestamp, HBaseRpc.HasValue, HBaseRpc.HasValues
Constructor and Description |
---|
RowLockRequest(byte[] table,
byte[] key)
Constructor.
|
RowLockRequest(String table,
String key)
Constructor.
|
public RowLockRequest(byte[] table, byte[] key)
table
- The table containing the row to lock.key
- The key of the row to lock in that table.public byte[] table()
HBaseRpc.HasTable
DO NOT MODIFY THE CONTENTS OF THE ARRAY RETURNED.
table
in interface HBaseRpc.HasTable
public byte[] key()
HBaseRpc.HasKey
DO NOT MODIFY THE CONTENTS OF THE ARRAY RETURNED.
key
in interface HBaseRpc.HasKey