|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hbase.async.HBaseRpc org.hbase.async.AtomicIncrementRequest
public final class AtomicIncrementRequest
Atomically increments a value in HBase.
byte
arrays in argumentbyte[]
in argument will copy it.
For more info, please refer to the documentation of HBaseRpc
.
String
s in argument
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 | |
---|---|
AtomicIncrementRequest(byte[] table,
byte[] key,
byte[] family,
byte[] qualifier)
Constructor. |
|
AtomicIncrementRequest(byte[] table,
byte[] key,
byte[] family,
byte[] qualifier,
long amount)
Constructor. |
|
AtomicIncrementRequest(String table,
String key,
String family,
String qualifier)
Constructor. |
|
AtomicIncrementRequest(String table,
String key,
String family,
String qualifier,
long amount)
Constructor. |
Method Summary | |
---|---|
byte[] |
family()
Returns the family this RPC is for. |
long |
getAmount()
Returns the amount by which the value is going to be incremented. |
byte[] |
key()
Returns the row key this RPC is for. |
byte[] |
qualifier()
Returns the column qualifier this RPC is for. |
void |
setAmount(long amount)
Changes the amount by which the value is going to be incremented. |
byte[] |
table()
Returns the name of the table this RPC is for. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AtomicIncrementRequest(byte[] table, byte[] key, byte[] family, byte[] qualifier, long amount)
table
- The non-empty name of the table to use.key
- The row key of the value to increment.family
- The column family of the value to increment.qualifier
- The column qualifier of the value to increment.amount
- Amount by which to increment the value in HBase.
If negative, the value in HBase will be decremented.public AtomicIncrementRequest(byte[] table, byte[] key, byte[] family, byte[] qualifier)
AtomicIncrementRequest
(table, key, family, qualifier, 1)
These byte arrays will NOT be copied.
table
- The non-empty name of the table to use.key
- The row key of the value to increment.family
- The column family of the value to increment.qualifier
- The column qualifier of the value to increment.public AtomicIncrementRequest(String table, String key, String family, String qualifier, long amount)
table
- The non-empty name of the table to use.key
- The row key of the value to increment.family
- The column family of the value to increment.qualifier
- The column qualifier of the value to increment.amount
- Amount by which to increment the value in HBase.
If negative, the value in HBase will be decremented.public AtomicIncrementRequest(String table, String key, String family, String qualifier)
AtomicIncrementRequest
(table, key, family, qualifier, 1)
table
- The non-empty name of the table to use.key
- The row key of the value to increment.family
- The column family of the value to increment.qualifier
- The column qualifier of the value to increment.Method Detail |
---|
public long getAmount()
public void setAmount(long amount)
amount
- The new amount. If negative, the value will be decremented.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
public byte[] family()
HBaseRpc.HasFamily
DO NOT MODIFY THE CONTENTS OF THE ARRAY RETURNED.
family
in interface HBaseRpc.HasFamily
public byte[] qualifier()
HBaseRpc.HasQualifier
DO NOT MODIFY THE CONTENTS OF THE ARRAY RETURNED.
qualifier
in interface HBaseRpc.HasQualifier
public String toString()
toString
in class HBaseRpc
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |