|
|||||||||
| 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.GetRequest
public final class GetRequest
Reads something from HBase.
byte arrays in argumentbyte[] in argument will copy it.
For more info, please refer to the documentation of HBaseRpc.
Strings 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 | |
|---|---|
GetRequest(byte[] table,
byte[] key)
Constructor. |
|
GetRequest(String table,
byte[] key)
Constructor. |
|
GetRequest(String table,
String key)
Constructor. |
|
| Method Summary | |
|---|---|
byte[] |
family()
Returns the family this RPC is for. |
GetRequest |
family(byte[] family)
Specifies a particular column family to get. |
GetRequest |
family(String family)
Specifies a particular column family to get. |
byte[] |
key()
Returns the row key this RPC is for. |
GetRequest |
qualifier(byte[] qualifier)
Specifies a particular column qualifier to get. |
GetRequest |
qualifier(String qualifier)
Specifies a particular column qualifier to get. |
byte[][] |
qualifiers()
Returns the column qualifiers this RPC is for. |
GetRequest |
qualifiers(byte[][] qualifiers)
Specifies a particular set of column qualifiers to get. |
byte[] |
table()
Returns the name of the table this RPC is for. |
String |
toString()
|
GetRequest |
withRowLock(RowLock lock)
Specifies an explicit row lock to use with this request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GetRequest(byte[] table,
byte[] key)
table - The non-empty name of the table to use.key - The row key to get in that table.
public GetRequest(String table,
byte[] key)
table - The non-empty name of the table to use.key - The row key to get in that table.
This byte array will NOT be copied.
public GetRequest(String table,
String key)
table - The non-empty name of the table to use.key - The row key to get in that table.| Method Detail |
|---|
public GetRequest family(byte[] family)
family - The column family.
This byte array will NOT be copied.
this, always.public GetRequest family(String family)
public GetRequest qualifier(byte[] qualifier)
qualifier - The column qualifier.
This byte array will NOT be copied.
this, always.public GetRequest qualifiers(byte[][] qualifiers)
qualifiers - The column qualifiers.
This byte array will NOT be copied.
this, always.public GetRequest qualifier(String qualifier)
public GetRequest withRowLock(RowLock lock)
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[] family()
HBaseRpc.HasFamilyDO NOT MODIFY THE CONTENTS OF THE ARRAY RETURNED.
family in interface HBaseRpc.HasFamilypublic byte[][] qualifiers()
HBaseRpc.HasQualifiersDO NOT MODIFY THE CONTENTS OF THE ARRAY RETURNED.
qualifiers in interface HBaseRpc.HasQualifierspublic String toString()
toString in class HBaseRpc
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||