public class AliHBaseThriftClientBuilder extends ThriftClientBuilder
| 限定符和类型 | 类和说明 |
|---|---|
class |
AliHBaseThriftClientBuilder.AliHBaseClient
HTTP implementation of the TTransport interface.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ACCESSKEYHEADER |
static String |
ACCESSSIGNATUREHEADER |
static String |
ACCESSTIMESTAMPHEADER |
static String |
ACCESSUUID |
static String |
INSTANCEHOST |
static String |
INSTANCEIDHEADER |
static String |
TIMEOUTHEADER |
connection| 构造器和说明 |
|---|
AliHBaseThriftClientBuilder(AliHBaseThriftConnection connection) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addCostumHeader(String key,
String value) |
org.apache.hadoop.hbase.util.Pair<THBaseService.Client,org.apache.thrift.transport.TTransport> |
getClient() |
static String |
hmacSHA1Signature(String accessKeyID,
byte[] hashedPassword,
byte[] encodedNameAndPass,
long timestamp,
String UUID) |
static byte[] |
toReversed(String key) |
static byte[] |
toSHA1(byte[] key) |
static byte[] |
xor(byte[] left,
byte[] right)
Calculate the xor between the given two bytes.
|
public AliHBaseThriftClientBuilder(AliHBaseThriftConnection connection)
public org.apache.hadoop.hbase.util.Pair<THBaseService.Client,org.apache.thrift.transport.TTransport> getClient() throws IOException
getClient 在类中 ThriftClientBuilderIOExceptionpublic static byte[] toSHA1(byte[] key)
throws NoSuchAlgorithmException
public static byte[] toReversed(String key)
public static byte[] xor(byte[] left,
byte[] right)
left - right - public static String hmacSHA1Signature(String accessKeyID, byte[] hashedPassword, byte[] encodedNameAndPass, long timestamp, String UUID) throws IOException
IOExceptionCopyright © 2019. All rights reserved.