11import HiveDriver from "./hive/HiveDriver" ;
2- import IHiveSession , { ExecuteStatementOptions , SchemasRequest , TablesRequest , ColumnRequest , PrimaryKeysRequest , FunctionNameRequest } from './contracts/IHiveSession' ;
2+ import IHiveSession , { ExecuteStatementOptions , SchemasRequest , TablesRequest , ColumnRequest , PrimaryKeysRequest , FunctionNameRequest , CrossReferenceRequest } from './contracts/IHiveSession' ;
33import { SessionHandle , TCLIServiceTypes } from "./hive/Types" ;
44import IOperation from "./contracts/IOperation" ;
55import Status from "./dto/Status" ;
@@ -10,18 +10,7 @@ export default class HiveSession implements IHiveSession {
1010 private TCLIService_types ;
1111 private statusFactory ;
1212 constructor ( driver : HiveDriver , sessionHandle : SessionHandle , TCLIService_types : TCLIServiceTypes ) ;
13- /**
14- * Returns general information about the data source
15- *
16- * @param infoType one of the values TCLIService_types.TGetInfoType
17- */
1813 getInfo ( infoType : number ) : Promise < InfoResult > ;
19- /**
20- * Executes DDL/DML statements
21- *
22- * @param statement DDL/DDL statement
23- * @param options
24- */
2514 executeStatement ( statement : string , options ?: ExecuteStatementOptions ) : Promise < IOperation > ;
2615 getTypeInfo ( ) : Promise < IOperation > ;
2716 getCatalogs ( ) : Promise < IOperation > ;
@@ -31,6 +20,10 @@ export default class HiveSession implements IHiveSession {
3120 getColumns ( request : ColumnRequest ) : Promise < IOperation > ;
3221 getFunctions ( request : FunctionNameRequest ) : Promise < IOperation > ;
3322 getPrimaryKeys ( request : PrimaryKeysRequest ) : Promise < IOperation > ;
23+ getCrossReference ( request : CrossReferenceRequest ) : Promise < IOperation > ;
24+ getDelegationToken ( owner : string , renewer : string ) : Promise < string > ;
25+ renewDelegationToken ( token : string ) : Promise < Status > ;
26+ cancelDelegationToken ( token : string ) : Promise < Status > ;
3427 close ( ) : Promise < Status > ;
3528 private createOperation ;
3629 private assertStatus ;
0 commit comments