@InterfaceAudience.Private public class ThriftConnection extends Object implements org.apache.hadoop.hbase.client.Connection
| Modifier and Type | Class and Description |
|---|---|
static class |
ThriftConnection.DefaultThriftClientBuilder
the default thrift client builder.
|
static class |
ThriftConnection.DelayRetryHandler |
static class |
ThriftConnection.HTTPThriftClientBuilder
the default thrift http client builder.
|
| Constructor and Description |
|---|
ThriftConnection(org.apache.hadoop.conf.Configuration conf,
ExecutorService pool,
org.apache.hadoop.hbase.security.User user) |
| Modifier and Type | Method and Description |
|---|---|
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() |
int |
getPort() |
org.apache.hadoop.hbase.client.RegionLocator |
getRegionLocator(org.apache.hadoop.hbase.TableName tableName) |
org.apache.hadoop.hbase.client.TableBuilder |
getTableBuilder(org.apache.hadoop.hbase.TableName tableName,
ExecutorService pool)
Get a TableBuider to build ThriftTable, ThriftTable is NOT thread safe
|
boolean |
isAborted() |
boolean |
isClosed() |
boolean |
isCompact() |
boolean |
isFramed() |
void |
setHttpClient(org.apache.http.client.HttpClient httpClient) |
public ThriftConnection(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 in interface org.apache.hadoop.hbase.client.Connectionpublic String getHost()
public int getPort()
public boolean isFramed()
public boolean isCompact()
public int getOperationTimeout()
public int getConnectTimeout()
public ThriftClientBuilder getClientBuilder()
public org.apache.hadoop.hbase.client.Admin getAdmin()
throws IOException
getAdmin in interface org.apache.hadoop.hbase.client.ConnectionIOException - IOExceptionpublic org.apache.http.client.HttpClient getHttpClient()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.hadoop.hbase.client.ConnectionIOExceptionpublic boolean isClosed()
isClosed in interface org.apache.hadoop.hbase.client.Connectionpublic org.apache.hadoop.hbase.client.TableBuilder getTableBuilder(org.apache.hadoop.hbase.TableName tableName,
ExecutorService pool)
getTableBuilder in interface org.apache.hadoop.hbase.client.ConnectionIOException - IOExceptionpublic void abort(String why, Throwable e)
abort in interface org.apache.hadoop.hbase.Abortablepublic boolean isAborted()
isAborted in interface org.apache.hadoop.hbase.Abortablepublic org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator(org.apache.hadoop.hbase.TableName tableName)
throws IOException
getBufferedMutator in interface org.apache.hadoop.hbase.client.ConnectionIOExceptionpublic org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator(org.apache.hadoop.hbase.client.BufferedMutatorParams params)
throws IOException
getBufferedMutator in interface org.apache.hadoop.hbase.client.ConnectionIOExceptionpublic org.apache.hadoop.hbase.client.RegionLocator getRegionLocator(org.apache.hadoop.hbase.TableName tableName)
throws IOException
getRegionLocator in interface org.apache.hadoop.hbase.client.ConnectionIOExceptionpublic void clearRegionLocationCache()
clearRegionLocationCache in interface org.apache.hadoop.hbase.client.ConnectionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.