|
|||||||||
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.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
.
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 | |
---|---|
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.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
public String toString()
toString
in class HBaseRpc
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |