public class HiveServer2Endpoint extends Object implements org.apache.hive.service.rpc.thrift.TCLIService.Iface, SqlGatewayEndpoint, Runnable
Constructor and Description |
---|
HiveServer2Endpoint(SqlGatewayService service,
InetSocketAddress socketAddress,
long maxMessageSize,
int requestTimeoutMs,
int backOffSlotLengthMs,
int minWorkerThreads,
int maxWorkerThreads,
Duration workerKeepAliveTime,
String catalogName,
HiveConf hiveConf,
String defaultDatabase,
String moduleName) |
HiveServer2Endpoint(SqlGatewayService service,
InetSocketAddress socketAddress,
long maxMessageSize,
int requestTimeoutMs,
int backOffSlotLengthMs,
int minWorkerThreads,
int maxWorkerThreads,
Duration workerKeepAliveTime,
String catalogName,
HiveConf hiveConf,
String defaultDatabase,
String moduleName,
boolean allowEmbedded,
boolean isVerbose) |
Modifier and Type | Method and Description |
---|---|
org.apache.hive.service.rpc.thrift.TCancelDelegationTokenResp |
CancelDelegationToken(org.apache.hive.service.rpc.thrift.TCancelDelegationTokenReq tCancelDelegationTokenReq) |
org.apache.hive.service.rpc.thrift.TCancelOperationResp |
CancelOperation(org.apache.hive.service.rpc.thrift.TCancelOperationReq tCancelOperationReq) |
org.apache.hive.service.rpc.thrift.TCloseOperationResp |
CloseOperation(org.apache.hive.service.rpc.thrift.TCloseOperationReq tCloseOperationReq) |
org.apache.hive.service.rpc.thrift.TCloseSessionResp |
CloseSession(org.apache.hive.service.rpc.thrift.TCloseSessionReq tCloseSessionReq) |
boolean |
equals(Object o) |
org.apache.hive.service.rpc.thrift.TExecuteStatementResp |
ExecuteStatement(org.apache.hive.service.rpc.thrift.TExecuteStatementReq tExecuteStatementReq) |
org.apache.hive.service.rpc.thrift.TFetchResultsResp |
FetchResults(org.apache.hive.service.rpc.thrift.TFetchResultsReq tFetchResultsReq) |
org.apache.hive.service.rpc.thrift.TGetCatalogsResp |
GetCatalogs(org.apache.hive.service.rpc.thrift.TGetCatalogsReq tGetCatalogsReq) |
org.apache.hive.service.rpc.thrift.TGetColumnsResp |
GetColumns(org.apache.hive.service.rpc.thrift.TGetColumnsReq tGetColumnsReq) |
org.apache.hive.service.rpc.thrift.TGetCrossReferenceResp |
GetCrossReference(org.apache.hive.service.rpc.thrift.TGetCrossReferenceReq tGetCrossReferenceReq) |
org.apache.hive.service.rpc.thrift.TGetDelegationTokenResp |
GetDelegationToken(org.apache.hive.service.rpc.thrift.TGetDelegationTokenReq tGetDelegationTokenReq) |
org.apache.hive.service.rpc.thrift.TGetFunctionsResp |
GetFunctions(org.apache.hive.service.rpc.thrift.TGetFunctionsReq tGetFunctionsReq) |
org.apache.hive.service.rpc.thrift.TGetInfoResp |
GetInfo(org.apache.hive.service.rpc.thrift.TGetInfoReq tGetInfoReq) |
org.apache.hive.service.rpc.thrift.TGetOperationStatusResp |
GetOperationStatus(org.apache.hive.service.rpc.thrift.TGetOperationStatusReq tGetOperationStatusReq) |
org.apache.hive.service.rpc.thrift.TGetPrimaryKeysResp |
GetPrimaryKeys(org.apache.hive.service.rpc.thrift.TGetPrimaryKeysReq tGetPrimaryKeysReq) |
TGetQueryIdResp |
GetQueryId(TGetQueryIdReq tGetQueryIdReq)
To be compatible with Hive3, add a default implementation.
|
org.apache.hive.service.rpc.thrift.TGetResultSetMetadataResp |
GetResultSetMetadata(org.apache.hive.service.rpc.thrift.TGetResultSetMetadataReq tGetResultSetMetadataReq) |
org.apache.hive.service.rpc.thrift.TGetSchemasResp |
GetSchemas(org.apache.hive.service.rpc.thrift.TGetSchemasReq tGetSchemasReq) |
org.apache.hive.service.rpc.thrift.TGetTablesResp |
GetTables(org.apache.hive.service.rpc.thrift.TGetTablesReq tGetTablesReq) |
org.apache.hive.service.rpc.thrift.TGetTableTypesResp |
GetTableTypes(org.apache.hive.service.rpc.thrift.TGetTableTypesReq tGetTableTypesReq) |
org.apache.hive.service.rpc.thrift.TGetTypeInfoResp |
GetTypeInfo(org.apache.hive.service.rpc.thrift.TGetTypeInfoReq tGetTypeInfoReq) |
int |
hashCode() |
org.apache.hive.service.rpc.thrift.TOpenSessionResp |
OpenSession(org.apache.hive.service.rpc.thrift.TOpenSessionReq tOpenSessionReq) |
org.apache.hive.service.rpc.thrift.TRenewDelegationTokenResp |
RenewDelegationToken(org.apache.hive.service.rpc.thrift.TRenewDelegationTokenReq tRenewDelegationTokenReq) |
void |
run() |
TSetClientInfoResp |
SetClientInfo(TSetClientInfoReq tSetClientInfoReq)
To be compatible with Hive3, add a default implementation.
|
void |
start()
Start the endpoint.
|
void |
stop()
Terminate the endpoint.
|
public HiveServer2Endpoint(SqlGatewayService service, InetSocketAddress socketAddress, long maxMessageSize, int requestTimeoutMs, int backOffSlotLengthMs, int minWorkerThreads, int maxWorkerThreads, Duration workerKeepAliveTime, String catalogName, HiveConf hiveConf, @Nullable String defaultDatabase, String moduleName)
@VisibleForTesting public HiveServer2Endpoint(SqlGatewayService service, InetSocketAddress socketAddress, long maxMessageSize, int requestTimeoutMs, int backOffSlotLengthMs, int minWorkerThreads, int maxWorkerThreads, Duration workerKeepAliveTime, String catalogName, HiveConf hiveConf, @Nullable String defaultDatabase, String moduleName, boolean allowEmbedded, boolean isVerbose)
public void start() throws Exception
SqlGatewayEndpoint
start
in interface SqlGatewayEndpoint
Exception
public void stop() throws Exception
SqlGatewayEndpoint
stop
in interface SqlGatewayEndpoint
Exception
public org.apache.hive.service.rpc.thrift.TOpenSessionResp OpenSession(org.apache.hive.service.rpc.thrift.TOpenSessionReq tOpenSessionReq) throws org.apache.thrift.TException
OpenSession
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TCloseSessionResp CloseSession(org.apache.hive.service.rpc.thrift.TCloseSessionReq tCloseSessionReq) throws org.apache.thrift.TException
CloseSession
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TGetInfoResp GetInfo(org.apache.hive.service.rpc.thrift.TGetInfoReq tGetInfoReq) throws org.apache.thrift.TException
GetInfo
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TExecuteStatementResp ExecuteStatement(org.apache.hive.service.rpc.thrift.TExecuteStatementReq tExecuteStatementReq) throws org.apache.thrift.TException
ExecuteStatement
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TGetTypeInfoResp GetTypeInfo(org.apache.hive.service.rpc.thrift.TGetTypeInfoReq tGetTypeInfoReq) throws org.apache.thrift.TException
GetTypeInfo
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TGetCatalogsResp GetCatalogs(org.apache.hive.service.rpc.thrift.TGetCatalogsReq tGetCatalogsReq) throws org.apache.thrift.TException
GetCatalogs
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TGetSchemasResp GetSchemas(org.apache.hive.service.rpc.thrift.TGetSchemasReq tGetSchemasReq) throws org.apache.thrift.TException
GetSchemas
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TGetTablesResp GetTables(org.apache.hive.service.rpc.thrift.TGetTablesReq tGetTablesReq) throws org.apache.thrift.TException
GetTables
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TGetTableTypesResp GetTableTypes(org.apache.hive.service.rpc.thrift.TGetTableTypesReq tGetTableTypesReq) throws org.apache.thrift.TException
GetTableTypes
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TGetColumnsResp GetColumns(org.apache.hive.service.rpc.thrift.TGetColumnsReq tGetColumnsReq) throws org.apache.thrift.TException
GetColumns
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TGetFunctionsResp GetFunctions(org.apache.hive.service.rpc.thrift.TGetFunctionsReq tGetFunctionsReq) throws org.apache.thrift.TException
GetFunctions
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TGetPrimaryKeysResp GetPrimaryKeys(org.apache.hive.service.rpc.thrift.TGetPrimaryKeysReq tGetPrimaryKeysReq) throws org.apache.thrift.TException
GetPrimaryKeys
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TGetCrossReferenceResp GetCrossReference(org.apache.hive.service.rpc.thrift.TGetCrossReferenceReq tGetCrossReferenceReq) throws org.apache.thrift.TException
GetCrossReference
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TGetOperationStatusResp GetOperationStatus(org.apache.hive.service.rpc.thrift.TGetOperationStatusReq tGetOperationStatusReq) throws org.apache.thrift.TException
GetOperationStatus
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TCancelOperationResp CancelOperation(org.apache.hive.service.rpc.thrift.TCancelOperationReq tCancelOperationReq) throws org.apache.thrift.TException
CancelOperation
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TCloseOperationResp CloseOperation(org.apache.hive.service.rpc.thrift.TCloseOperationReq tCloseOperationReq) throws org.apache.thrift.TException
CloseOperation
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TGetResultSetMetadataResp GetResultSetMetadata(org.apache.hive.service.rpc.thrift.TGetResultSetMetadataReq tGetResultSetMetadataReq) throws org.apache.thrift.TException
GetResultSetMetadata
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TFetchResultsResp FetchResults(org.apache.hive.service.rpc.thrift.TFetchResultsReq tFetchResultsReq) throws org.apache.thrift.TException
FetchResults
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TGetDelegationTokenResp GetDelegationToken(org.apache.hive.service.rpc.thrift.TGetDelegationTokenReq tGetDelegationTokenReq) throws org.apache.thrift.TException
GetDelegationToken
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TCancelDelegationTokenResp CancelDelegationToken(org.apache.hive.service.rpc.thrift.TCancelDelegationTokenReq tCancelDelegationTokenReq) throws org.apache.thrift.TException
CancelDelegationToken
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public org.apache.hive.service.rpc.thrift.TRenewDelegationTokenResp RenewDelegationToken(org.apache.hive.service.rpc.thrift.TRenewDelegationTokenReq tRenewDelegationTokenReq) throws org.apache.thrift.TException
RenewDelegationToken
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public TGetQueryIdResp GetQueryId(TGetQueryIdReq tGetQueryIdReq) throws org.apache.thrift.TException
GetQueryId
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
public TSetClientInfoResp SetClientInfo(TSetClientInfoReq tSetClientInfoReq) throws org.apache.thrift.TException
SetClientInfo
in interface org.apache.hive.service.rpc.thrift.TCLIService.Iface
org.apache.thrift.TException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.