Class ThriftConnection.HTTPThriftClientBuilder
java.lang.Object
org.apache.hadoop.hbase.thrift2.client.ThriftClientBuilder
org.apache.hadoop.hbase.thrift2.client.ThriftConnection.HTTPThriftClientBuilder
- Enclosing class:
- ThriftConnection
the default thrift http client builder. One can extend the ThriftClientBuilder to builder
custom http client, implement features like authentication or
'DoAs'(hbase-examples/thrift/HttpDoAsClient)
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.thrift2.client.ThriftClientBuilder
connection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCostumHeader
(String key, String value) Pair<org.apache.hadoop.hbase.thrift2.generated.THBaseService.Client,
org.apache.thrift.transport.TTransport>
-
Field Details
-
customHeader
-
-
Constructor Details
-
HTTPThriftClientBuilder
-
-
Method Details
-
addCostumHeader
-
getClient
public Pair<org.apache.hadoop.hbase.thrift2.generated.THBaseService.Client,org.apache.thrift.transport.TTransport> getClient() throws IOException- Specified by:
getClient
in classThriftClientBuilder
- Throws:
IOException
-