public final class MultiColumnAtomicIncrementRequest extends HBaseRpc implements HBaseRpc.HasTable, HBaseRpc.HasKey, HBaseRpc.HasFamily, HBaseRpc.HasQualifiers
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
Modifier and Type | Field and Description |
---|---|
static byte[] |
MUTATE
RPC method name to use with HBase 0.95+.
|
Constructor and Description |
---|
MultiColumnAtomicIncrementRequest(byte[] table,
byte[] key,
byte[] family,
byte[][] qualifiers)
Constructor.
|
MultiColumnAtomicIncrementRequest(byte[] table,
byte[] key,
byte[] family,
byte[][] qualifiers,
long[] amounts)
Constructor.
|
MultiColumnAtomicIncrementRequest(String table,
String key,
String family,
String[] qualifiers)
Constructor.
|
MultiColumnAtomicIncrementRequest(String table,
String key,
String family,
String[] qualifiers,
long[] amounts)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
family()
Returns the family this RPC is for.
|
long[] |
getAmounts()
Returns the amount by which the value is going to be incremented.
|
byte[] |
key()
Returns the row key this RPC is for.
|
byte[][] |
qualifiers()
Returns the column qualifiers this RPC is for.
|
void |
setAmounts(long[] amounts)
Changes the amounts by which the values are going to be incremented.
|
byte[] |
table()
Returns the name of the table this RPC is for.
|
String |
toString() |
failfast, getTimeout, isProbe, isTraceRPC, setFailfast, setProbe, setTimeout, setTraceRPC
public MultiColumnAtomicIncrementRequest(byte[] table, byte[] key, byte[] family, byte[][] qualifiers, long[] amounts)
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.qualifiers
- The column qualifier of the value to increment.amounts
- Amount by which to increment the value in HBase.
If negative, the value in HBase will be decremented.public MultiColumnAtomicIncrementRequest(byte[] table, byte[] key, byte[] family, byte[][] qualifiers)
MultiColumnAtomicIncrementRequest
(table, key, family, qualifiers, new long[] {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.qualifiers
- The column qualifier of the value to increment.public MultiColumnAtomicIncrementRequest(String table, String key, String family, String[] qualifiers, long[] amounts)
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.qualifiers
- The column qualifier of the value to increment.amounts
- Amount by which to increment the value in HBase.
If negative, the value in HBase will be decremented.public MultiColumnAtomicIncrementRequest(String table, String key, String family, String[] qualifiers)
MultiColumnAtomicIncrementRequest
(table, key, family, qualifiers, new long[]{ 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.qualifiers
- The column qualifier of the value to increment.public long[] getAmounts()
public void setAmounts(long[] amounts)
amounts
- The new amounts. 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[][] qualifiers()
HBaseRpc.HasQualifiers
DO NOT MODIFY THE CONTENTS OF THE ARRAY RETURNED.
qualifiers
in interface HBaseRpc.HasQualifiers
Copyright © 2010-2017, The Async HBase Authors