public class AliHBaseThriftConnection extends Object implements org.apache.hadoop.hbase.client.Connection
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AliHBaseThriftConnection.DelayRetryHandler |
static class |
AliHBaseThriftConnection.HTTPThriftClientBuilder
the default thrift http client builder.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ALIHBASE_THRIFT_CLIENT_BUIDLER_CLASS |
| 构造器和说明 |
|---|
AliHBaseThriftConnection(org.apache.hadoop.conf.Configuration conf,
boolean managed,
ExecutorService pool,
org.apache.hadoop.hbase.security.User user) |
AliHBaseThriftConnection(org.apache.hadoop.conf.Configuration conf,
ExecutorService pool,
org.apache.hadoop.hbase.security.User user) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abort(String why,
Throwable e) |
void |
clearRegionLocationCache() |
void |
close() |
org.apache.hadoop.hbase.client.Admin |
getAdmin()
Get a ThriftAdmin, ThriftAdmin is NOT thread safe
|
org.apache.hadoop.hbase.client.BufferedMutator |
getBufferedMutator(org.apache.hadoop.hbase.client.BufferedMutatorParams params) |
org.apache.hadoop.hbase.client.BufferedMutator |
getBufferedMutator(org.apache.hadoop.hbase.TableName tableName) |
ThriftClientBuilder |
getClientBuilder() |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
int |
getConnectTimeout() |
String |
getHost() |
org.apache.http.client.HttpClient |
getHttpClient() |
int |
getOperationTimeout() |
org.apache.hadoop.hbase.client.RegionLocator |
getRegionLocator(org.apache.hadoop.hbase.TableName tableName) |
org.apache.hadoop.hbase.client.Table |
getTable(org.apache.hadoop.hbase.TableName tableName) |
org.apache.hadoop.hbase.client.Table |
getTable(org.apache.hadoop.hbase.TableName tableName,
ExecutorService executorService) |
boolean |
isAborted() |
boolean |
isClosed() |
void |
setHttpClient(org.apache.http.client.HttpClient httpClient) |
public AliHBaseThriftConnection(org.apache.hadoop.conf.Configuration conf,
boolean managed,
ExecutorService pool,
org.apache.hadoop.hbase.security.User user)
throws IOException
IOExceptionpublic AliHBaseThriftConnection(org.apache.hadoop.conf.Configuration conf,
ExecutorService pool,
org.apache.hadoop.hbase.security.User user)
throws IOException
IOExceptionpublic void setHttpClient(org.apache.http.client.HttpClient httpClient)
public org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration 在接口中 org.apache.hadoop.hbase.client.Connectionpublic String getHost()
public int getOperationTimeout()
public int getConnectTimeout()
public ThriftClientBuilder getClientBuilder()
public org.apache.hadoop.hbase.client.Admin getAdmin()
throws IOException
getAdmin 在接口中 org.apache.hadoop.hbase.client.ConnectionIOException - IOExceptionpublic org.apache.http.client.HttpClient getHttpClient()
public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在接口中 org.apache.hadoop.hbase.client.ConnectionIOExceptionpublic boolean isClosed()
isClosed 在接口中 org.apache.hadoop.hbase.client.Connectionpublic boolean isAborted()
isAborted 在接口中 org.apache.hadoop.hbase.Abortablepublic org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator(org.apache.hadoop.hbase.TableName tableName)
throws IOException
getBufferedMutator 在接口中 org.apache.hadoop.hbase.client.ConnectionIOExceptionpublic org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator(org.apache.hadoop.hbase.client.BufferedMutatorParams params)
throws IOException
getBufferedMutator 在接口中 org.apache.hadoop.hbase.client.ConnectionIOExceptionpublic org.apache.hadoop.hbase.client.RegionLocator getRegionLocator(org.apache.hadoop.hbase.TableName tableName)
throws IOException
getRegionLocator 在接口中 org.apache.hadoop.hbase.client.ConnectionIOExceptionpublic void clearRegionLocationCache()
public org.apache.hadoop.hbase.client.Table getTable(org.apache.hadoop.hbase.TableName tableName)
throws IOException
getTable 在接口中 org.apache.hadoop.hbase.client.ConnectionIOExceptionpublic org.apache.hadoop.hbase.client.Table getTable(org.apache.hadoop.hbase.TableName tableName,
ExecutorService executorService)
throws IOException
getTable 在接口中 org.apache.hadoop.hbase.client.ConnectionIOExceptionCopyright © 2019. All rights reserved.