diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 303a7495..ef8c4144 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -13,9 +13,7 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- - run: |
- npm ci
- npm run build
+ - run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
diff --git a/.gitignore b/.gitignore
index 7065c7a5..06c7b5d7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,5 @@ node_modules
.nyc_output
coverage_e2e
coverage_unit
+
+dist
diff --git a/.npmignore b/.npmignore
index 95ad7905..2bfe597c 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,3 +1,9 @@
-lib/
-.docker
-.github
\ No newline at end of file
+*
+
+!dist/**/*
+!thrift/**/*
+
+!LICENSE
+!NOTICE
+!package.json
+!README.md
diff --git a/dist/DBSQLClient.d.ts b/dist/DBSQLClient.d.ts
deleted file mode 100644
index 1578c409..00000000
--- a/dist/DBSQLClient.d.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-///
-import HiveUtils from "./utils/HiveUtils";
-import IHiveSession from "./contracts/IHiveSession";
-interface EventEmitter extends NodeJS.EventEmitter {
-}
-interface IConnectionOptions {
- host: string;
- port?: number;
- path: string;
- token: string;
-}
-/**
- * @see IHiveClient
- */
-interface IDBSQLClient {
- connect(options: IConnectionOptions): Promise;
- openSession(): Promise;
- close(): void;
-}
-export default class DBSQLClient implements IDBSQLClient, EventEmitter {
- static utils: HiveUtils;
- private client;
- connect(options: IConnectionOptions): Promise;
- openSession(): Promise;
- close(): void;
- addListener(event: string | symbol, listener: (...args: any[]) => void): this;
- on(event: string | symbol, listener: (...args: any[]) => void): this;
- once(event: string | symbol, listener: (...args: any[]) => void): this;
- removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
- off(event: string | symbol, listener: (...args: any[]) => void): this;
- removeAllListeners(event?: string | symbol): this;
- setMaxListeners(n: number): this;
- getMaxListeners(): number;
- listeners(event: string | symbol): Function[];
- rawListeners(event: string | symbol): Function[];
- emit(event: string | symbol, ...args: any[]): boolean;
- listenerCount(type: string | symbol): number;
- prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
- prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
- eventNames(): (string | symbol)[];
-}
-export {};
diff --git a/dist/DBSQLClient.js b/dist/DBSQLClient.js
deleted file mode 100644
index e051b6e8..00000000
--- a/dist/DBSQLClient.js
+++ /dev/null
@@ -1,111 +0,0 @@
-"use strict";
-var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
- if (ar || !(i in from)) {
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
- ar[i] = from[i];
- }
- }
- return to.concat(ar || Array.prototype.slice.call(from));
-};
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var TCLIService = require('../thrift/gen-nodejs/TCLIService');
-var TCLIService_types = require('../thrift/gen-nodejs/TCLIService_types');
-var HiveClient_1 = __importDefault(require("./HiveClient"));
-var HiveUtils_1 = __importDefault(require("./utils/HiveUtils"));
-var PlainHttpAuthentication_1 = __importDefault(require("./connection/auth/PlainHttpAuthentication"));
-var HttpConnection_1 = __importDefault(require("./connection/connections/HttpConnection"));
-var DBSQLClient = /** @class */ (function () {
- function DBSQLClient() {
- this.client = new HiveClient_1.default(TCLIService, TCLIService_types);
- }
- DBSQLClient.prototype.connect = function (options) {
- var _this = this;
- return this.client.connect({
- host: options.host,
- port: options.port || 443,
- options: {
- path: options.path,
- https: true,
- }
- }, new HttpConnection_1.default(), new PlainHttpAuthentication_1.default({
- username: 'token',
- password: options.token,
- })).then(function () { return _this; });
- };
- DBSQLClient.prototype.openSession = function () {
- return this.client.openSession({
- client_protocol: TCLIService_types.TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V11
- });
- };
- DBSQLClient.prototype.close = function () {
- this.client.close();
- };
- // EventEmitter
- DBSQLClient.prototype.addListener = function (event, listener) {
- this.client.addListener(event, listener);
- return this;
- };
- DBSQLClient.prototype.on = function (event, listener) {
- this.client.on(event, listener);
- return this;
- };
- DBSQLClient.prototype.once = function (event, listener) {
- this.client.once(event, listener);
- return this;
- };
- DBSQLClient.prototype.removeListener = function (event, listener) {
- this.client.removeListener(event, listener);
- return this;
- };
- DBSQLClient.prototype.off = function (event, listener) {
- this.client.off(event, listener);
- return this;
- };
- DBSQLClient.prototype.removeAllListeners = function (event) {
- this.client.removeAllListeners(event);
- return this;
- };
- DBSQLClient.prototype.setMaxListeners = function (n) {
- this.client.setMaxListeners(n);
- return this;
- };
- DBSQLClient.prototype.getMaxListeners = function () {
- return this.client.getMaxListeners();
- };
- DBSQLClient.prototype.listeners = function (event) {
- return this.client.listeners(event);
- };
- DBSQLClient.prototype.rawListeners = function (event) {
- return this.client.rawListeners(event);
- };
- DBSQLClient.prototype.emit = function (event) {
- var _a;
- var args = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- args[_i - 1] = arguments[_i];
- }
- return (_a = this.client).emit.apply(_a, __spreadArray([event], args, false));
- };
- DBSQLClient.prototype.listenerCount = function (type) {
- return this.client.listenerCount(type);
- };
- DBSQLClient.prototype.prependListener = function (event, listener) {
- this.client.prependListener(event, listener);
- return this;
- };
- DBSQLClient.prototype.prependOnceListener = function (event, listener) {
- this.client.prependOnceListener(event, listener);
- return this;
- };
- DBSQLClient.prototype.eventNames = function () {
- return this.client.eventNames();
- };
- DBSQLClient.utils = new HiveUtils_1.default(TCLIService_types);
- return DBSQLClient;
-}());
-exports.default = DBSQLClient;
-//# sourceMappingURL=DBSQLClient.js.map
\ No newline at end of file
diff --git a/dist/DBSQLClient.js.map b/dist/DBSQLClient.js.map
deleted file mode 100644
index 6e5ed049..00000000
--- a/dist/DBSQLClient.js.map
+++ /dev/null
@@ -1 +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QAAE,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,6BAAc;;QACvC,OAAO,CAAA,KAAA,IAAI,CAAC,MAAM,CAAA,CAAC,IAAI,0BAAC,KAAK,GAAK,IAAI,UAAE;IAC5C,CAAC;IACD,mCAAa,GAAb,UAAc,IAAqB;QAC/B,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IACD,qCAAe,GAAf,UAAgB,KAAsB,EAAE,QAAkC;QACtE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAC7C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,yCAAmB,GAAnB,UAAoB,KAAsB,EAAE,QAAkC;QAC1E,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,gCAAU,GAAV;QACI,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;IACpC,CAAC;IAtFM,iBAAK,GAAG,IAAI,mBAAS,CAAC,iBAAiB,CAAC,CAAC;IAuFpD,kBAAC;CAAA,AAxFD,IAwFC;kBAxFoB,WAAW"}
\ No newline at end of file
diff --git a/dist/HiveClient.d.ts b/dist/HiveClient.d.ts
deleted file mode 100644
index 4bec5034..00000000
--- a/dist/HiveClient.d.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-///
-import { ThriftClient, TCLIServiceTypes } from './hive/Types/';
-import IHiveClient from './contracts/IHiveClient';
-import { OpenSessionRequest } from './hive/Commands/OpenSessionCommand';
-import IHiveSession from './contracts/IHiveSession';
-import IConnectionProvider from './connection/contracts/IConnectionProvider';
-import IAuthentication from './connection/contracts/IAuthentication';
-import IConnectionOptions from './connection/contracts/IConnectionOptions';
-import { EventEmitter } from 'events';
-export default class HiveClient extends EventEmitter implements IHiveClient {
- private TCLIService;
- private TCLIService_types;
- private client;
- private connection;
- private statusFactory;
- private connectionProvider;
- private authProvider;
- private thrift;
- /**
- *
- * @param TCLIService generated from TCLIService.thrift (https://github.com/apache/hive/blob/master/service-rpc/if/TCLIService.thrift)
- * @param TCLIService_types object generated from TCLIService.thrift
- */
- constructor(TCLIService: object, TCLIService_types: TCLIServiceTypes);
- connect(options: IConnectionOptions, connectionProvider?: IConnectionProvider, authProvider?: IAuthentication): Promise;
- /**
- * Starts new session
- *
- * @param request
- * @throws {StatusError}
- */
- openSession(request: OpenSessionRequest): Promise;
- getClient(): ThriftClient;
- close(): void;
-}
diff --git a/dist/HiveClient.js b/dist/HiveClient.js
deleted file mode 100644
index 38a37b56..00000000
--- a/dist/HiveClient.js
+++ /dev/null
@@ -1,156 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
-var __generator = (this && this.__generator) || function (thisArg, body) {
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
- function verb(n) { return function (v) { return step([n, v]); }; }
- function step(op) {
- if (f) throw new TypeError("Generator is already executing.");
- while (_) try {
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
- if (y = 0, t) op = [op[0] & 2, t.value];
- switch (op[0]) {
- case 0: case 1: t = op; break;
- case 4: _.label++; return { value: op[1], done: false };
- case 5: _.label++; y = op[1]; op = [0]; continue;
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
- default:
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
- if (t[2]) _.ops.pop();
- _.trys.pop(); continue;
- }
- op = body.call(thisArg, _);
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
- }
-};
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var thrift = require('thrift');
-var HiveDriver_1 = __importDefault(require("./hive/HiveDriver"));
-var HiveSession_1 = __importDefault(require("./HiveSession"));
-var NoSaslAuthentication_1 = __importDefault(require("./connection/auth/NoSaslAuthentication"));
-var HttpConnection_1 = __importDefault(require("./connection/connections/HttpConnection"));
-var events_1 = require("events");
-var StatusFactory_1 = __importDefault(require("./factory/StatusFactory"));
-var HiveDriverError_1 = __importDefault(require("./errors/HiveDriverError"));
-var HiveClient = /** @class */ (function (_super) {
- __extends(HiveClient, _super);
- /**
- *
- * @param TCLIService generated from TCLIService.thrift (https://github.com/apache/hive/blob/master/service-rpc/if/TCLIService.thrift)
- * @param TCLIService_types object generated from TCLIService.thrift
- */
- function HiveClient(TCLIService, TCLIService_types) {
- var _this = _super.call(this) || this;
- _this.thrift = thrift;
- _this.TCLIService = TCLIService;
- _this.TCLIService_types = TCLIService_types;
- _this.connectionProvider = new HttpConnection_1.default();
- _this.authProvider = new NoSaslAuthentication_1.default();
- _this.statusFactory = new StatusFactory_1.default(TCLIService_types);
- _this.client = null;
- _this.connection = null;
- return _this;
- }
- HiveClient.prototype.connect = function (options, connectionProvider, authProvider) {
- return __awaiter(this, void 0, void 0, function () {
- var _a;
- var _this = this;
- return __generator(this, function (_b) {
- switch (_b.label) {
- case 0:
- if (connectionProvider) {
- this.connectionProvider = connectionProvider;
- }
- if (authProvider) {
- this.authProvider = authProvider;
- }
- _a = this;
- return [4 /*yield*/, this.connectionProvider.connect(options, this.authProvider)];
- case 1:
- _a.connection = _b.sent();
- this.client = this.thrift.createClient(this.TCLIService, this.connection.getConnection());
- this.connection.getConnection().on('error', function (error) {
- _this.emit('error', error);
- });
- this.connection.getConnection().on('reconnecting', function (params) {
- _this.emit('reconnecting', params);
- });
- this.connection.getConnection().on('close', function () {
- _this.emit('close');
- });
- this.connection.getConnection().on('timeout', function () {
- _this.emit('timeout');
- });
- return [2 /*return*/, this];
- }
- });
- });
- };
- /**
- * Starts new session
- *
- * @param request
- * @throws {StatusError}
- */
- HiveClient.prototype.openSession = function (request) {
- var _this = this;
- var _a;
- if (!((_a = this.connection) === null || _a === void 0 ? void 0 : _a.isConnected())) {
- return Promise.reject(new HiveDriverError_1.default('HiveClient: connection is lost'));
- }
- var driver = new HiveDriver_1.default(this.TCLIService_types, this.getClient());
- return driver.openSession(request).then(function (response) {
- _this.statusFactory.create(response.status);
- var session = new HiveSession_1.default(driver, response.sessionHandle, _this.TCLIService_types);
- return session;
- });
- };
- HiveClient.prototype.getClient = function () {
- if (!this.client) {
- throw new HiveDriverError_1.default('HiveClient: client is not initialized');
- }
- return this.client;
- };
- HiveClient.prototype.close = function () {
- if (!this.connection) {
- return;
- }
- var thriftConnection = this.connection.getConnection();
- if (typeof thriftConnection.end === 'function') {
- this.connection.getConnection().end();
- }
- };
- return HiveClient;
-}(events_1.EventEmitter));
-exports.default = HiveClient;
-//# sourceMappingURL=HiveClient.js.map
\ No newline at end of file
diff --git a/dist/HiveClient.js.map b/dist/HiveClient.js.map
deleted file mode 100644
index 654b7162..00000000
--- a/dist/HiveClient.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"HiveClient.js","sourceRoot":"","sources":["../lib/HiveClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAIjC,iEAA2C;AAE3C,8DAAwC;AAKxC,gGAA0E;AAC1E,2FAAqE;AAErE,iCAAsC;AACtC,0EAAoD;AACpD,6EAAuD;AAEvD;IAAwC,8BAAY;IAUhD;;;;OAIG;IACH,oBAAY,WAAmB,EAAE,iBAAmC;QAApE,YACI,iBAAO,SASV;QARG,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,KAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,KAAI,CAAC,kBAAkB,GAAG,IAAI,wBAAc,EAAE,CAAC;QAC/C,KAAI,CAAC,YAAY,GAAG,IAAI,8BAAoB,EAAE,CAAC;QAC/C,KAAI,CAAC,aAAa,GAAG,IAAI,uBAAa,CAAC,iBAAiB,CAAC,CAAC;QAC1D,KAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,KAAI,CAAC,UAAU,GAAG,IAAI,CAAC;;IAC3B,CAAC;IAEK,4BAAO,GAA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;QAAvC,iBAqBC;;QApBH,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,UAAU,0CAAE,WAAW,EAAE,CAAA,EAAE;YAC3B,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,yBAAe,CAAC,gCAAgC,CAAC,CAAC,CAAC;SACtF;QAEK,IAAM,MAAM,GAAG,IAAI,oBAAU,CACzB,IAAI,CAAC,iBAAiB,EACtB,IAAI,CAAC,SAAS,EAAE,CACnB,CAAC;QAEF,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,UAAC,QAA6B;YAClE,KAAI,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAE3C,IAAM,OAAO,GAAG,IAAI,qBAAW,CAC3B,MAAM,EACN,QAAQ,CAAC,aAAa,EACtB,KAAI,CAAC,iBAAiB,CACzB,CAAC;YAEF,OAAO,OAAO,CAAC;QACnB,CAAC,CAAC,CAAC;IACP,CAAC;IAED,8BAAS,GAAT;QACI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YACd,MAAM,IAAI,yBAAe,CAAC,uCAAuC,CAAC,CAAC;SACtE;QAED,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,0BAAK,GAAL;QACI,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YAClB,OAAO;SACV;QAED,IAAM,gBAAgB,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAA;QAExD,IAAI,OAAO,gBAAgB,CAAC,GAAG,KAAK,UAAU,EAAE;YAC5C,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC,GAAG,EAAE,CAAC;SACzC;IACL,CAAC;IACL,iBAAC;AAAD,CAAC,AArHD,CAAwC,qBAAY,GAqHnD"}
\ No newline at end of file
diff --git a/dist/HiveOperation.d.ts b/dist/HiveOperation.d.ts
deleted file mode 100644
index e68aa50f..00000000
--- a/dist/HiveOperation.d.ts
+++ /dev/null
@@ -1,65 +0,0 @@
-import IOperation from "./contracts/IOperation";
-import HiveDriver from "./hive/HiveDriver";
-import { OperationHandle, TCLIServiceTypes, TableSchema, RowSet } from "./hive/Types";
-import Status from "./dto/Status";
-import { GetOperationStatusResponse } from "./hive/Commands/GetOperationStatusCommand";
-export default class HiveOperation implements IOperation {
- private driver;
- private operationHandle;
- private TCLIService_type;
- private schema;
- private data;
- private statusFactory;
- private maxRows;
- private fetchType;
- private _hasMoreRows;
- private state;
- private hasResultSet;
- constructor(driver: HiveDriver, operationHandle: OperationHandle, TCLIService_type: TCLIServiceTypes);
- /**
- * Fetches result and schema from operation
- * @throws {StatusError}
- */
- fetch(): Promise;
- /**
- * Requests operation status
- * @param progress
- * @throws {StatusError}
- */
- status(progress?: boolean): Promise;
- /**
- * Cancels operation
- * @throws {StatusError}
- */
- cancel(): Promise;
- /**
- * Closes operation
- * @throws {StatusError}
- */
- close(): Promise;
- finished(): boolean;
- hasMoreRows(): boolean;
- setMaxRows(maxRows: number): void;
- setFetchType(fetchType: number): void;
- getSchema(): TableSchema | null;
- getData(): Array;
- getQueryId(): Promise;
- /**
- * Resets `this.data` buffer.
- * Needs to be called when working with massive data.
- */
- flush(): void;
- /**
- * Retrieves schema
- * @throws {StatusError}
- */
- private initializeSchema;
- private firstFetch;
- private nextFetch;
- /**
- * @param response
- * @throws {StatusError}
- */
- private processFetchResponse;
- private checkIfOperationHasMoreRows;
-}
diff --git a/dist/HiveOperation.js b/dist/HiveOperation.js
deleted file mode 100644
index 9f51aeb9..00000000
--- a/dist/HiveOperation.js
+++ /dev/null
@@ -1,190 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var Types_1 = require("./hive/Types");
-var StatusFactory_1 = __importDefault(require("./factory/StatusFactory"));
-var HiveOperation = /** @class */ (function () {
- function HiveOperation(driver, operationHandle, TCLIService_type) {
- this.maxRows = 100;
- this.fetchType = 0;
- this._hasMoreRows = false;
- this.hasResultSet = false;
- this.driver = driver;
- this.operationHandle = operationHandle;
- this.hasResultSet = operationHandle.hasResultSet;
- this.TCLIService_type = TCLIService_type;
- this.statusFactory = new StatusFactory_1.default(TCLIService_type);
- this.state = TCLIService_type.TOperationState.INITIALIZED_STATE;
- this.schema = null;
- this.data = [];
- }
- /**
- * Fetches result and schema from operation
- * @throws {StatusError}
- */
- HiveOperation.prototype.fetch = function () {
- var _this = this;
- if (!this.hasResultSet) {
- return Promise.resolve(this.statusFactory.create({
- statusCode: this.TCLIService_type.TStatusCode.SUCCESS_STATUS
- }));
- }
- if (!this.finished()) {
- return Promise.resolve(this.statusFactory.create({
- statusCode: this.TCLIService_type.TStatusCode.STILL_EXECUTING_STATUS
- }));
- }
- if (this.schema === null) {
- return this.initializeSchema().then(function (schema) {
- _this.schema = schema;
- return _this.firstFetch();
- }).then(function (response) { return _this.processFetchResponse(response); });
- }
- else {
- return this.nextFetch().then(function (response) { return _this.processFetchResponse(response); });
- }
- };
- /**
- * Requests operation status
- * @param progress
- * @throws {StatusError}
- */
- HiveOperation.prototype.status = function (progress) {
- var _this = this;
- if (progress === void 0) { progress = false; }
- return this.driver.getOperationStatus({
- operationHandle: this.operationHandle,
- getProgressUpdate: progress
- }).then(function (response) {
- var _a;
- _this.statusFactory.create(response.status);
- _this.state = (_a = response.operationState) !== null && _a !== void 0 ? _a : _this.state;
- if (typeof response.hasResultSet === 'boolean') {
- _this.hasResultSet = response.hasResultSet;
- }
- return response;
- });
- };
- /**
- * Cancels operation
- * @throws {StatusError}
- */
- HiveOperation.prototype.cancel = function () {
- var _this = this;
- return this.driver.cancelOperation({
- operationHandle: this.operationHandle
- }).then(function (response) {
- return _this.statusFactory.create(response.status);
- });
- };
- /**
- * Closes operation
- * @throws {StatusError}
- */
- HiveOperation.prototype.close = function () {
- var _this = this;
- return this.driver.closeOperation({
- operationHandle: this.operationHandle
- }).then(function (response) {
- return _this.statusFactory.create(response.status);
- });
- };
- HiveOperation.prototype.finished = function () {
- return this.state === this.TCLIService_type.TOperationState.FINISHED_STATE;
- };
- HiveOperation.prototype.hasMoreRows = function () {
- return this._hasMoreRows;
- };
- HiveOperation.prototype.setMaxRows = function (maxRows) {
- this.maxRows = maxRows;
- };
- HiveOperation.prototype.setFetchType = function (fetchType) {
- this.fetchType = fetchType;
- };
- HiveOperation.prototype.getSchema = function () {
- return this.schema;
- };
- HiveOperation.prototype.getData = function () {
- return this.data;
- };
- HiveOperation.prototype.getQueryId = function () {
- return this.driver.getQueryId({
- operationHandle: this.operationHandle
- }).then(function (response) {
- return response.queryId;
- });
- };
- /**
- * Resets `this.data` buffer.
- * Needs to be called when working with massive data.
- */
- HiveOperation.prototype.flush = function () {
- this.data = [];
- };
- /**
- * Retrieves schema
- * @throws {StatusError}
- */
- HiveOperation.prototype.initializeSchema = function () {
- var _this = this;
- return this.driver.getResultSetMetadata({
- operationHandle: this.operationHandle
- }).then(function (schema) {
- _this.statusFactory.create(schema.status);
- return schema.schema;
- });
- };
- HiveOperation.prototype.firstFetch = function () {
- return this.driver.fetchResults({
- operationHandle: this.operationHandle,
- orientation: this.TCLIService_type.TFetchOrientation.FETCH_FIRST,
- maxRows: this.maxRows,
- fetchType: this.fetchType,
- });
- };
- HiveOperation.prototype.nextFetch = function () {
- return this.driver.fetchResults({
- operationHandle: this.operationHandle,
- orientation: this.TCLIService_type.TFetchOrientation.FETCH_NEXT,
- maxRows: this.maxRows,
- fetchType: this.fetchType,
- });
- };
- /**
- * @param response
- * @throws {StatusError}
- */
- HiveOperation.prototype.processFetchResponse = function (response) {
- var status = this.statusFactory.create(response.status);
- this._hasMoreRows = this.checkIfOperationHasMoreRows(response);
- if (response.results) {
- this.data.push(response.results);
- }
- return status;
- };
- HiveOperation.prototype.checkIfOperationHasMoreRows = function (response) {
- var _a, _b;
- if (response.hasMoreRows) {
- return true;
- }
- var columns = ((_a = response.results) === null || _a === void 0 ? void 0 : _a.columns) || [];
- if (!columns.length) {
- return false;
- }
- var column = columns[0];
- var columnValue = column[Types_1.ColumnCode.binaryVal]
- || column[Types_1.ColumnCode.boolVal]
- || column[Types_1.ColumnCode.byteVal]
- || column[Types_1.ColumnCode.doubleVal]
- || column[Types_1.ColumnCode.i16Val]
- || column[Types_1.ColumnCode.i32Val]
- || column[Types_1.ColumnCode.i64Val]
- || column[Types_1.ColumnCode.stringVal];
- return ((_b = columnValue === null || columnValue === void 0 ? void 0 : columnValue.values) === null || _b === void 0 ? void 0 : _b.length) > 0;
- };
- return HiveOperation;
-}());
-exports.default = HiveOperation;
-//# sourceMappingURL=HiveOperation.js.map
\ No newline at end of file
diff --git a/dist/HiveOperation.js.map b/dist/HiveOperation.js.map
deleted file mode 100644
index e436b15d..00000000
--- a/dist/HiveOperation.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"HiveOperation.js","sourceRoot":"","sources":["../lib/HiveOperation.ts"],"names":[],"mappings":";;;;;AAEA,sCAA0G;AAK1G,0EAAoD;AAGpD;IAeI,uBACI,MAAkB,EAClB,eAAgC,EAChC,gBAAkC;QAV9B,YAAO,GAAW,GAAG,CAAC;QACtB,cAAS,GAAW,CAAC,CAAC;QAEtB,iBAAY,GAAY,KAAK,CAAC;QAE9B,iBAAY,GAAY,KAAK,CAAC;QAOlC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,YAAY,GAAG,eAAe,CAAC,YAAY,CAAC;QACjD,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,aAAa,GAAG,IAAI,uBAAa,CAAC,gBAAgB,CAAC,CAAC;QACzD,IAAI,CAAC,KAAK,GAAG,gBAAgB,CAAC,eAAe,CAAC,iBAAiB,CAAC;QAEhE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;IACn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0CAAE,MAAM,IAAG,CAAC,CAAC;IAC3C,CAAC;IACL,oBAAC;AAAD,CAAC,AAjOD,IAiOC"}
\ No newline at end of file
diff --git a/dist/HiveSession.d.ts b/dist/HiveSession.d.ts
deleted file mode 100644
index fc5414ac..00000000
--- a/dist/HiveSession.d.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import HiveDriver from "./hive/HiveDriver";
-import IHiveSession, { ExecuteStatementOptions, SchemasRequest, TablesRequest, ColumnRequest, PrimaryKeysRequest, FunctionNameRequest, CrossReferenceRequest } from './contracts/IHiveSession';
-import { SessionHandle, TCLIServiceTypes } from "./hive/Types";
-import IOperation from "./contracts/IOperation";
-import Status from "./dto/Status";
-import InfoValue from "./dto/InfoValue";
-export default class HiveSession implements IHiveSession {
- private driver;
- private sessionHandle;
- private TCLIService_types;
- private statusFactory;
- constructor(driver: HiveDriver, sessionHandle: SessionHandle, TCLIService_types: TCLIServiceTypes);
- getInfo(infoType: number): Promise;
- executeStatement(statement: string, options?: ExecuteStatementOptions): Promise;
- getTypeInfo(): Promise;
- getCatalogs(): Promise;
- getSchemas(request: SchemasRequest): Promise;
- getTables(request: TablesRequest): Promise;
- getTableTypes(): Promise;
- getColumns(request: ColumnRequest): Promise;
- getFunctions(request: FunctionNameRequest): Promise;
- getPrimaryKeys(request: PrimaryKeysRequest): Promise;
- getCrossReference(request: CrossReferenceRequest): Promise;
- getDelegationToken(owner: string, renewer: string): Promise;
- renewDelegationToken(token: string): Promise;
- cancelDelegationToken(token: string): Promise;
- close(): Promise;
- private createOperation;
- private assertStatus;
-}
diff --git a/dist/HiveSession.js b/dist/HiveSession.js
deleted file mode 100644
index 7d8f8e91..00000000
--- a/dist/HiveSession.js
+++ /dev/null
@@ -1,197 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var HiveOperation_1 = __importDefault(require("./HiveOperation"));
-var StatusFactory_1 = __importDefault(require("./factory/StatusFactory"));
-var InfoValue_1 = __importDefault(require("./dto/InfoValue"));
-var HiveSession = /** @class */ (function () {
- function HiveSession(driver, sessionHandle, TCLIService_types) {
- this.driver = driver;
- this.sessionHandle = sessionHandle;
- this.TCLIService_types = TCLIService_types;
- this.statusFactory = new StatusFactory_1.default(TCLIService_types);
- }
- HiveSession.prototype.getInfo = function (infoType) {
- var _this = this;
- return this.driver.getInfo({
- sessionHandle: this.sessionHandle,
- infoType: infoType
- }).then(function (response) {
- _this.assertStatus(response.status);
- return new InfoValue_1.default(response.infoValue);
- });
- };
- HiveSession.prototype.executeStatement = function (statement, options) {
- var _this = this;
- if (options === void 0) { options = {}; }
- options = __assign({ runAsync: false }, options);
- return this.driver.executeStatement(__assign({ sessionHandle: this.sessionHandle, statement: statement }, options)).then(function (response) {
- _this.assertStatus(response.status);
- return _this.createOperation(response.operationHandle);
- });
- };
- HiveSession.prototype.getTypeInfo = function () {
- var _this = this;
- return this.driver.getTypeInfo({
- sessionHandle: this.sessionHandle
- }).then(function (response) {
- _this.assertStatus(response.status);
- return _this.createOperation(response.operationHandle);
- });
- };
- HiveSession.prototype.getCatalogs = function () {
- var _this = this;
- return this.driver.getCatalogs({
- sessionHandle: this.sessionHandle
- }).then(function (response) {
- _this.assertStatus(response.status);
- return _this.createOperation(response.operationHandle);
- });
- };
- HiveSession.prototype.getSchemas = function (request) {
- var _this = this;
- return this.driver.getSchemas({
- sessionHandle: this.sessionHandle,
- catalogName: request.catalogName,
- schemaName: request.schemaName,
- }).then(function (response) {
- _this.assertStatus(response.status);
- return _this.createOperation(response.operationHandle);
- });
- };
- HiveSession.prototype.getTables = function (request) {
- var _this = this;
- return this.driver.getTables({
- sessionHandle: this.sessionHandle,
- catalogName: request.catalogName,
- schemaName: request.schemaName,
- tableName: request.tableName,
- tableTypes: request.tableTypes,
- }).then(function (response) {
- _this.assertStatus(response.status);
- return _this.createOperation(response.operationHandle);
- });
- };
- HiveSession.prototype.getTableTypes = function () {
- var _this = this;
- return this.driver.getTableTypes({
- sessionHandle: this.sessionHandle,
- }).then(function (response) {
- _this.assertStatus(response.status);
- return _this.createOperation(response.operationHandle);
- });
- };
- HiveSession.prototype.getColumns = function (request) {
- var _this = this;
- return this.driver.getColumns({
- sessionHandle: this.sessionHandle,
- catalogName: request.catalogName,
- schemaName: request.schemaName,
- tableName: request.tableName,
- columnName: request.columnName,
- }).then(function (response) {
- _this.assertStatus(response.status);
- return _this.createOperation(response.operationHandle);
- });
- };
- HiveSession.prototype.getFunctions = function (request) {
- var _this = this;
- return this.driver.getFunctions({
- sessionHandle: this.sessionHandle,
- functionName: request.functionName,
- schemaName: request.schemaName,
- catalogName: request.catalogName,
- }).then(function (response) {
- _this.assertStatus(response.status);
- return _this.createOperation(response.operationHandle);
- });
- };
- HiveSession.prototype.getPrimaryKeys = function (request) {
- var _this = this;
- return this.driver.getPrimaryKeys({
- sessionHandle: this.sessionHandle,
- catalogName: request.catalogName,
- schemaName: request.schemaName,
- tableName: request.tableName,
- }).then(function (response) {
- _this.assertStatus(response.status);
- return _this.createOperation(response.operationHandle);
- });
- };
- HiveSession.prototype.getCrossReference = function (request) {
- var _this = this;
- return this.driver.getCrossReference({
- sessionHandle: this.sessionHandle,
- parentCatalogName: request.parentCatalogName,
- parentSchemaName: request.parentSchemaName,
- parentTableName: request.parentTableName,
- foreignCatalogName: request.foreignCatalogName,
- foreignSchemaName: request.foreignSchemaName,
- foreignTableName: request.foreignTableName,
- }).then(function (response) {
- _this.assertStatus(response.status);
- return _this.createOperation(response.operationHandle);
- });
- };
- HiveSession.prototype.getDelegationToken = function (owner, renewer) {
- var _this = this;
- return this.driver.getDelegationToken({
- sessionHandle: this.sessionHandle,
- owner: owner,
- renewer: renewer
- }).then(function (response) {
- _this.assertStatus(response.status);
- return response.delegationToken || '';
- });
- };
- HiveSession.prototype.renewDelegationToken = function (token) {
- var _this = this;
- return this.driver.renewDelegationToken({
- sessionHandle: this.sessionHandle,
- delegationToken: token
- }).then(function (response) {
- _this.assertStatus(response.status);
- return _this.statusFactory.create(response.status);
- });
- };
- HiveSession.prototype.cancelDelegationToken = function (token) {
- var _this = this;
- return this.driver.cancelDelegationToken({
- sessionHandle: this.sessionHandle,
- delegationToken: token
- }).then(function (response) {
- _this.assertStatus(response.status);
- return _this.statusFactory.create(response.status);
- });
- };
- HiveSession.prototype.close = function () {
- var _this = this;
- return this.driver.closeSession({
- sessionHandle: this.sessionHandle
- }).then(function (response) {
- return _this.statusFactory.create(response.status);
- });
- };
- HiveSession.prototype.createOperation = function (handle) {
- return new HiveOperation_1.default(this.driver, handle, this.TCLIService_types);
- };
- HiveSession.prototype.assertStatus = function (responseStatus) {
- this.statusFactory.create(responseStatus);
- };
- return HiveSession;
-}());
-exports.default = HiveSession;
-//# sourceMappingURL=HiveSession.js.map
\ No newline at end of file
diff --git a/dist/HiveSession.js.map b/dist/HiveSession.js.map
deleted file mode 100644
index e93397b8..00000000
--- a/dist/HiveSession.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"HiveSession.js","sourceRoot":"","sources":["../lib/HiveSession.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,kEAA4C;AAE5C,0EAAoD;AACpD,8DAAwC;AAExC;IAMI,qBAAY,MAAkB,EAAE,aAA4B,EAAE,iBAAmC;QAC7F,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,aAAa,GAAG,IAAI,uBAAa,CAAC,iBAAiB,CAAC,CAAC;IAC9D,CAAC;IAED,6BA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AI,CAAC,iBAAiB,CACzB,CAAC;IACN,CAAC;IAEO,kCAAY,GAApB,UAAqB,cAAuB;QACxC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IAC9C,CAAC;IACL,kBAAC;AAAD,CAAC,AA9MD,IA8MC"}
\ No newline at end of file
diff --git a/dist/connection/auth/NoSaslAuthentication.d.ts b/dist/connection/auth/NoSaslAuthentication.d.ts
deleted file mode 100644
index 6772ee8e..00000000
--- a/dist/connection/auth/NoSaslAuthentication.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import IAuthentication from "../contracts/IAuthentication";
-import ITransport from "../contracts/ITransport";
-export default class NoSaslAuthentication implements IAuthentication {
- authenticate(transport: ITransport): Promise;
-}
diff --git a/dist/connection/auth/NoSaslAuthentication.js b/dist/connection/auth/NoSaslAuthentication.js
deleted file mode 100644
index 6a50ea7c..00000000
--- a/dist/connection/auth/NoSaslAuthentication.js
+++ /dev/null
@@ -1,15 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var thrift = require('thrift');
-var NoSaslAuthentication = /** @class */ (function () {
- function NoSaslAuthentication() {
- }
- NoSaslAuthentication.prototype.authenticate = function (transport) {
- transport.connect();
- transport.setOptions('transport', thrift.TBufferedTransport);
- return Promise.resolve(transport);
- };
- return NoSaslAuthentication;
-}());
-exports.default = NoSaslAuthentication;
-//# sourceMappingURL=NoSaslAuthentication.js.map
\ No newline at end of file
diff --git a/dist/connection/auth/NoSaslAuthentication.js.map b/dist/connection/auth/NoSaslAuthentication.js.map
deleted file mode 100644
index 28cf3c08..00000000
--- a/dist/connection/auth/NoSaslAuthentication.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"NoSaslAuthentication.js","sourceRoot":"","sources":["../../../lib/connection/auth/NoSaslAuthentication.ts"],"names":[],"mappings":";;AAAA,IAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAIjC;IAAA;IAOA,CAAC;IANG,2CAAY,GAAZ,UAAa,SAAqB;QAC9B,SAAS,CAAC,OAAO,EAAE,CAAC;QACpB,SAAS,CAAC,UAAU,CAAC,WAAW,EAAE,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAE7D,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC;IACL,2BAAC;AAAD,CAAC,AAPD,IAOC"}
\ No newline at end of file
diff --git a/dist/connection/auth/PlainHttpAuthentication.d.ts b/dist/connection/auth/PlainHttpAuthentication.d.ts
deleted file mode 100644
index 8bec6491..00000000
--- a/dist/connection/auth/PlainHttpAuthentication.d.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import IAuthentication from "../contracts/IAuthentication";
-import ITransport from "../contracts/ITransport";
-import { AuthOptions } from '../types/AuthOptions';
-declare type HttpAuthOptions = AuthOptions & {
- headers?: object;
-};
-export default class PlainHttpAuthentication implements IAuthentication {
- private username;
- private password;
- private headers;
- constructor(options: HttpAuthOptions);
- authenticate(transport: ITransport): Promise;
- private getToken;
-}
-export {};
diff --git a/dist/connection/auth/PlainHttpAuthentication.js b/dist/connection/auth/PlainHttpAuthentication.js
deleted file mode 100644
index 59f155c0..00000000
--- a/dist/connection/auth/PlainHttpAuthentication.js
+++ /dev/null
@@ -1,30 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var PlainHttpAuthentication = /** @class */ (function () {
- function PlainHttpAuthentication(options) {
- this.username = (options === null || options === void 0 ? void 0 : options.username) || 'anonymous';
- this.password = (options === null || options === void 0 ? void 0 : options.password) !== undefined ? options === null || options === void 0 ? void 0 : options.password : 'anonymous';
- this.headers = (options === null || options === void 0 ? void 0 : options.headers) || {};
- }
- PlainHttpAuthentication.prototype.authenticate = function (transport) {
- transport.setOptions('headers', __assign(__assign({}, (this.headers)), { Authorization: this.getToken(this.username, this.password) }));
- return Promise.resolve(transport);
- };
- PlainHttpAuthentication.prototype.getToken = function (username, password) {
- return 'Basic ' + Buffer.from("".concat(username, ":").concat(password)).toString('base64');
- };
- return PlainHttpAuthentication;
-}());
-exports.default = PlainHttpAuthentication;
-//# sourceMappingURL=PlainHttpAuthentication.js.map
\ No newline at end of file
diff --git a/dist/connection/auth/PlainHttpAuthentication.js.map b/dist/connection/auth/PlainHttpAuthentication.js.map
deleted file mode 100644
index bf3d86da..00000000
--- a/dist/connection/auth/PlainHttpAuthentication.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"PlainHttpAuthentication.js","sourceRoot":"","sources":["../../../lib/connection/auth/PlainHttpAuthentication.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAQA;IAKI,iCAAY,OAAwB;QAChC,IAAI,CAAC,QAAQ,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,KAAI,WAAW,CAAC;QACjD,IAAI,CAAC,QAAQ,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,MAAK,SAAS,CAAC,CAAC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC;QAClF,IAAI,CAAC,OAAO,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,KAAI,EAAE,CAAC;IAC1C,CAAC;IAED,8CAAY,GAAZ,UAAa,SAAqB;QAC9B,SAAS,CAAC,UAAU,CAAC,SAAS,wBACvB,CAAC,IAAI,CAAC,OAAO,CAAC,KACjB,aAAa,EAAE,IAAI,CAAC,QAAQ,CACxB,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,QAAQ,CAChB,IACH,CAAC;QAEH,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC;IAEO,0CAAQ,GAAhB,UAAiB,QAAgB,EAAE,QAAgB;QAC/C,OAAO,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,UAAG,QAAQ,cAAI,QAAQ,CAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAChF,CAAC;IACL,8BAAC;AAAD,CAAC,AA1BD,IA0BC"}
\ No newline at end of file
diff --git a/dist/connection/auth/helpers/SaslPackageFactory.d.ts b/dist/connection/auth/helpers/SaslPackageFactory.d.ts
deleted file mode 100644
index 5000499a..00000000
--- a/dist/connection/auth/helpers/SaslPackageFactory.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-///
-export declare enum StatusCode {
- START = 1,
- OK = 2,
- BAD = 3,
- ERROR = 4,
- COMPLETE = 5
-}
-export declare class SaslPackageFactory {
- static create(status: StatusCode, body: Buffer): Buffer;
-}
diff --git a/dist/connection/auth/helpers/SaslPackageFactory.js b/dist/connection/auth/helpers/SaslPackageFactory.js
deleted file mode 100644
index 46c831b4..00000000
--- a/dist/connection/auth/helpers/SaslPackageFactory.js
+++ /dev/null
@@ -1,24 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.SaslPackageFactory = exports.StatusCode = void 0;
-var StatusCode;
-(function (StatusCode) {
- StatusCode[StatusCode["START"] = 1] = "START";
- StatusCode[StatusCode["OK"] = 2] = "OK";
- StatusCode[StatusCode["BAD"] = 3] = "BAD";
- StatusCode[StatusCode["ERROR"] = 4] = "ERROR";
- StatusCode[StatusCode["COMPLETE"] = 5] = "COMPLETE";
-})(StatusCode = exports.StatusCode || (exports.StatusCode = {}));
-;
-var SaslPackageFactory = /** @class */ (function () {
- function SaslPackageFactory() {
- }
- SaslPackageFactory.create = function (status, body) {
- var bodyLength = Buffer.alloc(4);
- bodyLength.writeUInt32BE(body.length, 0);
- return Buffer.concat([Buffer.from([status]), bodyLength, body]);
- };
- return SaslPackageFactory;
-}());
-exports.SaslPackageFactory = SaslPackageFactory;
-//# sourceMappingURL=SaslPackageFactory.js.map
\ No newline at end of file
diff --git a/dist/connection/auth/helpers/SaslPackageFactory.js.map b/dist/connection/auth/helpers/SaslPackageFactory.js.map
deleted file mode 100644
index 0b322a6f..00000000
--- a/dist/connection/auth/helpers/SaslPackageFactory.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"SaslPackageFactory.js","sourceRoot":"","sources":["../../../../lib/connection/auth/helpers/SaslPackageFactory.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAMX;AAND,WAAY,UAAU;IAClB,6CAAO,CAAA;IACP,uCAAI,CAAA;IACJ,yCAAK,CAAA;IACL,6CAAO,CAAA;IACP,mDAAU,CAAA;AACd,CAAC,EANW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAMrB;AAAA,CAAC;AAEF;IAAA;IAQA,CAAC;IAPU,yBAAM,GAAb,UAAc,MAAkB,EAAE,IAAY;QAC1C,IAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAEnC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QAEzC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAE,MAAM,CAAC,IAAI,CAAC,CAAE,MAAM,CAAE,CAAC,EAAE,UAAU,EAAE,IAAI,CAAE,CAAC,CAAC;IACxE,CAAC;IACL,yBAAC;AAAD,CAAC,AARD,IAQC;AARY,gDAAkB"}
\ No newline at end of file
diff --git a/dist/connection/connections/HttpConnection.d.ts b/dist/connection/connections/HttpConnection.d.ts
deleted file mode 100644
index 353713ac..00000000
--- a/dist/connection/connections/HttpConnection.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import IThriftConnection from "../contracts/IThriftConnection";
-import IConnectionProvider from "../contracts/IConnectionProvider";
-import IConnectionOptions from "../contracts/IConnectionOptions";
-import IAuthentication from "../contracts/IAuthentication";
-export default class HttpConnection implements IConnectionProvider, IThriftConnection {
- private thrift;
- private connection;
- connect(options: IConnectionOptions, authProvider: IAuthentication): Promise;
- getConnection(): any;
- isConnected(): boolean;
- private getNodeOptions;
- private addCookieHandler;
-}
diff --git a/dist/connection/connections/HttpConnection.js b/dist/connection/connections/HttpConnection.js
deleted file mode 100644
index e7d7f59d..00000000
--- a/dist/connection/connections/HttpConnection.js
+++ /dev/null
@@ -1,77 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var thrift = require('thrift');
-var HttpTransport_1 = __importDefault(require("../transports/HttpTransport"));
-var HttpConnection = /** @class */ (function () {
- function HttpConnection() {
- this.thrift = thrift;
- }
- HttpConnection.prototype.connect = function (options, authProvider) {
- var _this = this;
- var _a;
- var httpTransport = new HttpTransport_1.default(__assign(__assign({ transport: thrift.TBufferedTransport, protocol: thrift.TBinaryProtocol }, options.options), { nodeOptions: __assign(__assign({}, this.getNodeOptions(options.options || {})), (((_a = options.options) === null || _a === void 0 ? void 0 : _a.nodeOptions) || {})) }));
- return authProvider.authenticate(httpTransport).then(function () {
- _this.connection = _this.thrift.createHttpConnection(options.host, options.port, httpTransport.getOptions());
- _this.addCookieHandler();
- return _this;
- });
- };
- HttpConnection.prototype.getConnection = function () {
- return this.connection;
- };
- HttpConnection.prototype.isConnected = function () {
- if (this.connection) {
- return true;
- }
- else {
- return false;
- }
- };
- HttpConnection.prototype.getNodeOptions = function (options) {
- var ca = options.ca, cert = options.cert, key = options.key, https = options.https;
- var nodeOptions = {};
- if (ca) {
- nodeOptions.ca = ca;
- }
- if (cert) {
- nodeOptions.cert = cert;
- }
- if (key) {
- nodeOptions.key = key;
- }
- if (https) {
- nodeOptions.rejectUnauthorized = false;
- }
- return nodeOptions;
- };
- HttpConnection.prototype.addCookieHandler = function () {
- var _this = this;
- var responseCallback = this.connection.responseCallback;
- this.connection.responseCallback = function (response) {
- if (Array.isArray(response.headers['set-cookie'])) {
- var cookie = [_this.connection.nodeOptions.headers['cookie']];
- _this.connection.nodeOptions.headers['cookie'] = cookie.concat(response.headers['set-cookie'])
- .filter(Boolean)
- .join(';');
- }
- responseCallback.call(_this.connection, response);
- };
- };
- return HttpConnection;
-}());
-exports.default = HttpConnection;
-//# sourceMappingURL=HttpConnection.js.map
\ No newline at end of file
diff --git a/dist/connection/connections/HttpConnection.js.map b/dist/connection/connections/HttpConnection.js.map
deleted file mode 100644
index a48fec5c..00000000
--- a/dist/connection/connections/HttpConnection.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"HttpConnection.js","sourceRoot":"","sources":["../../../lib/connection/connections/HttpConnection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAMjC,8EAAwD;AAUxD;IAAA;QACY,WAAM,GAAQ,MAAM,CAAC;IA2EjC,CAAC;IAxEG,gCAAO,GAAP,UAAQ,OAA2B,EAAE,YAA6B;QAAlE,iBAsBC;;QArBG,IAAM,aAAa,GAAG,IAAI,uBAAa,qBACnC,SAAS,EAAE,MAAM,CAAC,kBAAkB,EACpC,QAAQ,EAAE,MAAM,CAAC,eAAe,IAC7B,OAAO,CAAC,OAAO,KAClB,WAAW,wBACJ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,GAC1C,CAAC,CAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,WAAW,KAAI,EAAE,CAAC,KAE7C,CAAA;QAEF,OAAO,YAAY,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC,IAAI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;gBAC/C,IAAI,MAAM,GAAG,CAAC,KAAI,CAAC,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;gBAE7D,KAAI,CAAC,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;qBACxF,MAAM,CAAC,OAAO,CAAC;qBACf,IAAI,CAAC,GAAG,CAAC,CAAC;aAClB;YAED,gBAAgB,CAAC,IAAI,CAAC,KAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACrD,CAAC,CAAC;IACN,CAAC;IACL,qBAAC;AAAD,CAAC,AA5ED,IA4EC"}
\ No newline at end of file
diff --git a/dist/connection/contracts/IAuthentication.d.ts b/dist/connection/contracts/IAuthentication.d.ts
deleted file mode 100644
index 9386b911..00000000
--- a/dist/connection/contracts/IAuthentication.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import ITransport from "./ITransport";
-export default interface IAuthentication {
- authenticate(connection: ITransport): Promise;
-}
diff --git a/dist/connection/contracts/IAuthentication.js b/dist/connection/contracts/IAuthentication.js
deleted file mode 100644
index e9267e91..00000000
--- a/dist/connection/contracts/IAuthentication.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=IAuthentication.js.map
\ No newline at end of file
diff --git a/dist/connection/contracts/IAuthentication.js.map b/dist/connection/contracts/IAuthentication.js.map
deleted file mode 100644
index b898521c..00000000
--- a/dist/connection/contracts/IAuthentication.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"IAuthentication.js","sourceRoot":"","sources":["../../../lib/connection/contracts/IAuthentication.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/dist/connection/contracts/IConnectionOptions.d.ts b/dist/connection/contracts/IConnectionOptions.d.ts
deleted file mode 100644
index 1694d99a..00000000
--- a/dist/connection/contracts/IConnectionOptions.d.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-///
-export declare type Options = {
- username?: string;
- password?: string;
- ssl?: boolean;
- https?: boolean;
- debug?: boolean;
- max_attempts?: number;
- retry_max_delay?: number;
- connect_timeout?: number;
- timeout?: number;
- headers?: object;
- path?: string;
- ca?: Buffer | string;
- cert?: Buffer | string;
- key?: Buffer | string;
- [key: string]: any;
-};
-export default interface IConnectionOptions {
- host: string;
- port: number;
- options?: Options;
-}
diff --git a/dist/connection/contracts/IConnectionOptions.js b/dist/connection/contracts/IConnectionOptions.js
deleted file mode 100644
index 3c5b2bc3..00000000
--- a/dist/connection/contracts/IConnectionOptions.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=IConnectionOptions.js.map
\ No newline at end of file
diff --git a/dist/connection/contracts/IConnectionOptions.js.map b/dist/connection/contracts/IConnectionOptions.js.map
deleted file mode 100644
index 4b9451af..00000000
--- a/dist/connection/contracts/IConnectionOptions.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"IConnectionOptions.js","sourceRoot":"","sources":["../../../lib/connection/contracts/IConnectionOptions.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/dist/connection/contracts/IConnectionProvider.d.ts b/dist/connection/contracts/IConnectionProvider.d.ts
deleted file mode 100644
index 2eb6be68..00000000
--- a/dist/connection/contracts/IConnectionProvider.d.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import IConnectionOptions from './IConnectionOptions';
-import IAuthentication from './IAuthentication';
-import IThriftConnection from './IThriftConnection';
-export default interface IConnectionProvider {
- connect(options: IConnectionOptions, authProvider: IAuthentication): Promise;
-}
diff --git a/dist/connection/contracts/IConnectionProvider.js b/dist/connection/contracts/IConnectionProvider.js
deleted file mode 100644
index a967e26a..00000000
--- a/dist/connection/contracts/IConnectionProvider.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=IConnectionProvider.js.map
\ No newline at end of file
diff --git a/dist/connection/contracts/IConnectionProvider.js.map b/dist/connection/contracts/IConnectionProvider.js.map
deleted file mode 100644
index a9363cb5..00000000
--- a/dist/connection/contracts/IConnectionProvider.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"IConnectionProvider.js","sourceRoot":"","sources":["../../../lib/connection/contracts/IConnectionProvider.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/dist/connection/contracts/IThriftConnection.d.ts b/dist/connection/contracts/IThriftConnection.d.ts
deleted file mode 100644
index 2ef5fec3..00000000
--- a/dist/connection/contracts/IThriftConnection.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export default interface IThriftConnection {
- getConnection(): any;
- isConnected(): boolean;
-}
diff --git a/dist/connection/contracts/IThriftConnection.js b/dist/connection/contracts/IThriftConnection.js
deleted file mode 100644
index a7a4e943..00000000
--- a/dist/connection/contracts/IThriftConnection.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=IThriftConnection.js.map
\ No newline at end of file
diff --git a/dist/connection/contracts/IThriftConnection.js.map b/dist/connection/contracts/IThriftConnection.js.map
deleted file mode 100644
index 959565ce..00000000
--- a/dist/connection/contracts/IThriftConnection.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"IThriftConnection.js","sourceRoot":"","sources":["../../../lib/connection/contracts/IThriftConnection.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/dist/connection/contracts/ITransport.d.ts b/dist/connection/contracts/ITransport.d.ts
deleted file mode 100644
index eeff7012..00000000
--- a/dist/connection/contracts/ITransport.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-///
-export declare type ThriftConnection = any;
-export default interface ITransport {
- getTransport(): any;
- setOptions(option: string, value: any): void;
- getOptions(): object;
- connect(): any;
- addListener(eventName: string, listener: Function): void;
- removeListener(eventName: string, listener: Function): void;
- emit(eventName: string): void;
- write(data: Buffer | String): void;
- end(): void;
-}
diff --git a/dist/connection/contracts/ITransport.js b/dist/connection/contracts/ITransport.js
deleted file mode 100644
index efbec431..00000000
--- a/dist/connection/contracts/ITransport.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=ITransport.js.map
\ No newline at end of file
diff --git a/dist/connection/contracts/ITransport.js.map b/dist/connection/contracts/ITransport.js.map
deleted file mode 100644
index d42ea573..00000000
--- a/dist/connection/contracts/ITransport.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ITransport.js","sourceRoot":"","sources":["../../../lib/connection/contracts/ITransport.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/dist/connection/transports/HttpTransport.d.ts b/dist/connection/transports/HttpTransport.d.ts
deleted file mode 100644
index 9faf2460..00000000
--- a/dist/connection/transports/HttpTransport.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import ITransport from "../contracts/ITransport";
-export default class HttpTransport implements ITransport {
- private httpOptions;
- constructor(httpOptions?: object);
- getTransport(): any;
- setOptions(option: string, value: any): void;
- getOptions(): object;
- connect(): void;
- addListener(): void;
- removeListener(): void;
- write(): void;
- end(): void;
- emit(): void;
-}
diff --git a/dist/connection/transports/HttpTransport.js b/dist/connection/transports/HttpTransport.js
deleted file mode 100644
index fd4e7aa3..00000000
--- a/dist/connection/transports/HttpTransport.js
+++ /dev/null
@@ -1,39 +0,0 @@
-"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var HttpTransport = /** @class */ (function () {
- function HttpTransport(httpOptions) {
- if (httpOptions === void 0) { httpOptions = {}; }
- this.httpOptions = httpOptions;
- }
- HttpTransport.prototype.getTransport = function () {
- return this.httpOptions;
- };
- HttpTransport.prototype.setOptions = function (option, value) {
- var _a;
- this.httpOptions = __assign(__assign({}, this.httpOptions), (_a = {}, _a[option] = value, _a));
- };
- HttpTransport.prototype.getOptions = function () {
- return this.httpOptions;
- };
- HttpTransport.prototype.connect = function () { };
- ;
- HttpTransport.prototype.addListener = function () { };
- HttpTransport.prototype.removeListener = function () { };
- HttpTransport.prototype.write = function () { };
- HttpTransport.prototype.end = function () { };
- HttpTransport.prototype.emit = function () { };
- return HttpTransport;
-}());
-exports.default = HttpTransport;
-//# sourceMappingURL=HttpTransport.js.map
\ No newline at end of file
diff --git a/dist/connection/transports/HttpTransport.js.map b/dist/connection/transports/HttpTransport.js.map
deleted file mode 100644
index 378995ab..00000000
--- a/dist/connection/transports/HttpTransport.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"HttpTransport.js","sourceRoot":"","sources":["../../../lib/connection/transports/HttpTransport.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAEA;IAGI,uBAAY,WAAwB;QAAxB,4BAAA,EAAA,gBAAwB;QAChC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IAED,oCAAY,GAAZ;QACI,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED,kCAAU,GAAV,UAAW,MAAc,EAAE,KAAU;;QACjC,IAAI,CAAC,WAAW,yBACT,IAAI,CAAC,WAAW,gBAClB,MAAM,IAAG,KAAK,MAClB,CAAC;IACN,CAAC;IAED,kCAAU,GAAV;QACI,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED,+BAAO,GAAP,cAAW,CAAC;IAAA,CAAC;IACb,mCAAW,GAAX,cAAe,CAAC;IAChB,sCAAc,GAAd,cAAkB,CAAC;IACnB,6BAAK,GAAL,cAAS,CAAC;IACV,2BAAG,GAAH,cAAO,CAAC;IACR,4BAAI,GAAJ,cAAQ,CAAC;IACb,oBAAC;AAAD,CAAC,AA5BD,IA4BC"}
\ No newline at end of file
diff --git a/dist/connection/types/AuthOptions.d.ts b/dist/connection/types/AuthOptions.d.ts
deleted file mode 100644
index 4acfe32e..00000000
--- a/dist/connection/types/AuthOptions.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export declare type AuthOptions = {
- username?: string;
- password?: string;
-};
diff --git a/dist/connection/types/AuthOptions.js b/dist/connection/types/AuthOptions.js
deleted file mode 100644
index a863ed3f..00000000
--- a/dist/connection/types/AuthOptions.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=AuthOptions.js.map
\ No newline at end of file
diff --git a/dist/connection/types/AuthOptions.js.map b/dist/connection/types/AuthOptions.js.map
deleted file mode 100644
index bbaedbe0..00000000
--- a/dist/connection/types/AuthOptions.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"AuthOptions.js","sourceRoot":"","sources":["../../../lib/connection/types/AuthOptions.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/dist/contracts/IHiveClient.d.ts b/dist/contracts/IHiveClient.d.ts
deleted file mode 100644
index 8c27dc0f..00000000
--- a/dist/contracts/IHiveClient.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import IHiveSession from "./IHiveSession";
-import { OpenSessionRequest } from "../hive/Commands/OpenSessionCommand";
-import IConnectionOptions from "../connection/contracts/IConnectionOptions";
-import IConnectionProvider from "../connection/contracts/IConnectionProvider";
-import IAuthentication from "../connection/contracts/IAuthentication";
-export default interface IHiveClient {
- connect(options: IConnectionOptions, connectionProvider: IConnectionProvider, authProvider: IAuthentication): Promise;
- openSession(request: OpenSessionRequest): Promise;
- close(): void;
-}
diff --git a/dist/contracts/IHiveClient.js b/dist/contracts/IHiveClient.js
deleted file mode 100644
index cfdb7df9..00000000
--- a/dist/contracts/IHiveClient.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=IHiveClient.js.map
\ No newline at end of file
diff --git a/dist/contracts/IHiveClient.js.map b/dist/contracts/IHiveClient.js.map
deleted file mode 100644
index 06667329..00000000
--- a/dist/contracts/IHiveClient.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"IHiveClient.js","sourceRoot":"","sources":["../../lib/contracts/IHiveClient.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/dist/contracts/IHiveSession.d.ts b/dist/contracts/IHiveSession.d.ts
deleted file mode 100644
index afa0a217..00000000
--- a/dist/contracts/IHiveSession.d.ts
+++ /dev/null
@@ -1,126 +0,0 @@
-///
-import IOperation from "./IOperation";
-import Status from "../dto/Status";
-import InfoValue from "../dto/InfoValue";
-export declare type CrossReferenceRequest = {
- parentCatalogName: string;
- parentSchemaName: string;
- parentTableName: string;
- foreignCatalogName: string;
- foreignSchemaName: string;
- foreignTableName: string;
-};
-export declare type ExecuteStatementOptions = {
- runAsync?: boolean;
- confOverlay?: Map;
- queryTimeout?: Buffer;
-};
-export declare type SchemasRequest = {
- schemaName?: string;
- catalogName?: string;
-};
-export declare type TablesRequest = {
- catalogName?: string;
- schemaName?: string;
- tableName?: string;
- tableTypes?: Array;
-};
-export declare type ColumnRequest = {
- catalogName?: string;
- schemaName?: string;
- tableName?: string;
- columnName?: string;
-};
-export declare type FunctionNameRequest = {
- functionName: string;
- catalogName?: string;
- schemaName?: string;
-};
-export declare type PrimaryKeysRequest = {
- schemaName: string;
- tableName: string;
- catalogName?: string;
-};
-export default interface IHiveSession {
- /**
- * Returns general information about the data source
- *
- * @param infoType one of the values TCLIService_types.TGetInfoType
- */
- getInfo(infoType: number): Promise;
- /**
- * Executes DDL/DML statements
- *
- * @param statement DDL/DML statement
- * @param options
- */
- executeStatement(statement: string, options?: ExecuteStatementOptions): Promise;
- /**
- * Informataion about supported data types
- */
- getTypeInfo(): Promise;
- /**
- * Get list of catalogs
- */
- getCatalogs(): Promise;
- /**
- * Get list of databases
- *
- * @param request
- */
- getSchemas(request: SchemasRequest): Promise;
- /**
- * Get list of tables
- *
- * @param request
- */
- getTables(request: TablesRequest): Promise;
- /**
- * Get list of supported table types
- */
- getTableTypes(): Promise;
- /**
- * Get full information about columns of the table
- *
- * @param request
- */
- getColumns(request: ColumnRequest): Promise;
- /**
- * Get information about function
- *
- * @param request
- */
- getFunctions(request: FunctionNameRequest): Promise;
- /**
- * Get primary keys of table
- *
- * @param request
- */
- getPrimaryKeys(request: PrimaryKeysRequest): Promise;
- /**
- * Request information about foreign keys between two tables
- * @param request
- */
- getCrossReference(request: CrossReferenceRequest): Promise;
- /**
- * Get delegation token. For kerberos auth only
- *
- * @param owner
- * @param renewer
- */
- getDelegationToken(owner: string, renewer: string): Promise;
- /**
- * Renew delegation token/ For kerberos auth only
- * @param token
- */
- renewDelegationToken(token: string): Promise;
- /**
- * Cancel delegation token. For kerberos auth only
- * @param token
- */
- cancelDelegationToken(token: string): Promise;
- /**
- * closes the session
- */
- close(): Promise;
-}
diff --git a/dist/contracts/IHiveSession.js b/dist/contracts/IHiveSession.js
deleted file mode 100644
index d2409186..00000000
--- a/dist/contracts/IHiveSession.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=IHiveSession.js.map
\ No newline at end of file
diff --git a/dist/contracts/IHiveSession.js.map b/dist/contracts/IHiveSession.js.map
deleted file mode 100644
index 60719ab6..00000000
--- a/dist/contracts/IHiveSession.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"IHiveSession.js","sourceRoot":"","sources":["../../lib/contracts/IHiveSession.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/dist/contracts/IOperation.d.ts b/dist/contracts/IOperation.d.ts
deleted file mode 100644
index ad9d32e6..00000000
--- a/dist/contracts/IOperation.d.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-import { GetOperationStatusResponse } from "../hive/Commands/GetOperationStatusCommand";
-import Status from "../dto/Status";
-import { TableSchema, RowSet } from "../hive/Types";
-export default interface IOperation {
- /**
- * Fetch schema and a portion of data
- */
- fetch(): Promise;
- /**
- * Request status of operation
- *
- * @param progress
- */
- status(progress: boolean): Promise;
- /**
- * Cancel operation
- */
- cancel(): Promise;
- /**
- * Close operation
- */
- close(): Promise;
- /**
- * Check if operation is finished
- */
- finished(): boolean;
- /**
- * Check if operation hasMoreRows
- */
- hasMoreRows(): boolean;
- /**
- * Set the max fetch size
- */
- setMaxRows(maxRows: number): void;
- /**
- * Return retrieved schema
- */
- getSchema(): TableSchema | null;
- /**
- * Return retrieved data
- */
- getData(): Array;
- /**
- * Request queryId
- */
- getQueryId(): Promise;
-}
diff --git a/dist/contracts/IOperation.js b/dist/contracts/IOperation.js
deleted file mode 100644
index 6977eaab..00000000
--- a/dist/contracts/IOperation.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=IOperation.js.map
\ No newline at end of file
diff --git a/dist/contracts/IOperation.js.map b/dist/contracts/IOperation.js.map
deleted file mode 100644
index cc63261a..00000000
--- a/dist/contracts/IOperation.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"IOperation.js","sourceRoot":"","sources":["../../lib/contracts/IOperation.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/dist/dto/InfoValue.d.ts b/dist/dto/InfoValue.d.ts
deleted file mode 100644
index b1ea20ab..00000000
--- a/dist/dto/InfoValue.d.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-///
-import { GetInfoValue } from "../hive/Types";
-declare type InfoResultType = string | number | Buffer | null;
-export default class InfoValue {
- private value;
- constructor(value: GetInfoValue);
- getValue(): InfoResultType;
-}
-export {};
diff --git a/dist/dto/InfoValue.js b/dist/dto/InfoValue.js
deleted file mode 100644
index e0a2baa6..00000000
--- a/dist/dto/InfoValue.js
+++ /dev/null
@@ -1,31 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var InfoValue = /** @class */ (function () {
- function InfoValue(value) {
- this.value = value;
- }
- InfoValue.prototype.getValue = function () {
- var infoValue = this.value;
- if (infoValue.stringValue) {
- return infoValue.stringValue;
- }
- else if (infoValue.smallIntValue) {
- return infoValue.smallIntValue;
- }
- else if (infoValue.integerBitmask) {
- return infoValue.integerBitmask;
- }
- else if (infoValue.integerFlag) {
- return infoValue.integerFlag;
- }
- else if (infoValue.lenValue) {
- return infoValue.lenValue;
- }
- else {
- return null;
- }
- };
- return InfoValue;
-}());
-exports.default = InfoValue;
-//# sourceMappingURL=InfoValue.js.map
\ No newline at end of file
diff --git a/dist/dto/InfoValue.js.map b/dist/dto/InfoValue.js.map
deleted file mode 100644
index 936178ea..00000000
--- a/dist/dto/InfoValue.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"InfoValue.js","sourceRoot":"","sources":["../../lib/dto/InfoValue.ts"],"names":[],"mappings":";;AAIA;IAGI,mBAAY,KAAmB;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,4BAAQ,GAAR;QACI,IAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC;QAE7B,IAAI,SAAS,CAAC,WAAW,EAAE;YACvB,OAAO,SAAS,CAAC,WAAW,CAAC;SAChC;aAAM,IAAI,SAAS,CAAC,aAAa,EAAE;YAChC,OAAO,SAAS,CAAC,aAAa,CAAC;SAClC;aAAM,IAAI,SAAS,CAAC,cAAc,EAAE;YACjC,OAAO,SAAS,CAAC,cAAc,CAAC;SACnC;aAAM,IAAI,SAAS,CAAC,WAAW,EAAE;YAC9B,OAAO,SAAS,CAAC,WAAW,CAAC;SAChC;aAAM,IAAI,SAAS,CAAC,QAAQ,EAAE;YAC3B,OAAO,SAAS,CAAC,QAAQ,CAAC;SAC7B;aAAM;YACH,OAAO,IAAI,CAAC;SACf;IACL,CAAC;IACL,gBAAC;AAAD,CAAC,AAxBD,IAwBC"}
\ No newline at end of file
diff --git a/dist/dto/Status.d.ts b/dist/dto/Status.d.ts
deleted file mode 100644
index d27d27e5..00000000
--- a/dist/dto/Status.d.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-declare type StatusData = {
- success: boolean;
- executing: boolean;
- infoMessages: Array;
-};
-export default class Status {
- private isSuccess;
- private isExecuting;
- private infoMessages;
- constructor(data: StatusData);
- success(): boolean;
- executing(): boolean;
- getInfo(): Array;
-}
-export {};
diff --git a/dist/dto/Status.js b/dist/dto/Status.js
deleted file mode 100644
index c985a73d..00000000
--- a/dist/dto/Status.js
+++ /dev/null
@@ -1,21 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var Status = /** @class */ (function () {
- function Status(data) {
- this.isSuccess = data.success;
- this.isExecuting = data.executing;
- this.infoMessages = data.infoMessages;
- }
- Status.prototype.success = function () {
- return this.isSuccess;
- };
- Status.prototype.executing = function () {
- return this.isExecuting;
- };
- Status.prototype.getInfo = function () {
- return this.infoMessages;
- };
- return Status;
-}());
-exports.default = Status;
-//# sourceMappingURL=Status.js.map
\ No newline at end of file
diff --git a/dist/dto/Status.js.map b/dist/dto/Status.js.map
deleted file mode 100644
index 7800a17c..00000000
--- a/dist/dto/Status.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Status.js","sourceRoot":"","sources":["../../lib/dto/Status.ts"],"names":[],"mappings":";;AAMA;IAKI,gBAAY,IAAgB;QACxB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;IAC1C,CAAC;IAED,wBAAO,GAAP;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED,0BAAS,GAAT;QACI,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED,wBAAO,GAAP;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IACL,aAAC;AAAD,CAAC,AAtBD,IAsBC"}
\ No newline at end of file
diff --git a/dist/errors/AuthenticationError.d.ts b/dist/errors/AuthenticationError.d.ts
deleted file mode 100644
index fa9b5388..00000000
--- a/dist/errors/AuthenticationError.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import HiveDriverError from "./HiveDriverError";
-export default class AuthenticationError extends HiveDriverError {
-}
diff --git a/dist/errors/AuthenticationError.js b/dist/errors/AuthenticationError.js
deleted file mode 100644
index 1bcf9266..00000000
--- a/dist/errors/AuthenticationError.js
+++ /dev/null
@@ -1,30 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var HiveDriverError_1 = __importDefault(require("./HiveDriverError"));
-var AuthenticationError = /** @class */ (function (_super) {
- __extends(AuthenticationError, _super);
- function AuthenticationError() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- return AuthenticationError;
-}(HiveDriverError_1.default));
-exports.default = AuthenticationError;
-//# sourceMappingURL=AuthenticationError.js.map
\ No newline at end of file
diff --git a/dist/errors/AuthenticationError.js.map b/dist/errors/AuthenticationError.js.map
deleted file mode 100644
index 5c524645..00000000
--- a/dist/errors/AuthenticationError.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"AuthenticationError.js","sourceRoot":"","sources":["../../lib/errors/AuthenticationError.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,sEAAgD;AAEhD;IAAiD,uCAAe;IAAhE;;IAAkE,CAAC;IAAD,0BAAC;AAAD,CAAC,AAAnE,CAAiD,yBAAe,GAAG"}
\ No newline at end of file
diff --git a/dist/errors/HiveDriverError.d.ts b/dist/errors/HiveDriverError.d.ts
deleted file mode 100644
index 28f50131..00000000
--- a/dist/errors/HiveDriverError.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export default class HiveDriverError extends Error {
-}
diff --git a/dist/errors/HiveDriverError.js b/dist/errors/HiveDriverError.js
deleted file mode 100644
index 6036b83b..00000000
--- a/dist/errors/HiveDriverError.js
+++ /dev/null
@@ -1,26 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-Object.defineProperty(exports, "__esModule", { value: true });
-var HiveDriverError = /** @class */ (function (_super) {
- __extends(HiveDriverError, _super);
- function HiveDriverError() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- return HiveDriverError;
-}(Error));
-exports.default = HiveDriverError;
-//# sourceMappingURL=HiveDriverError.js.map
\ No newline at end of file
diff --git a/dist/errors/HiveDriverError.js.map b/dist/errors/HiveDriverError.js.map
deleted file mode 100644
index 40d1880a..00000000
--- a/dist/errors/HiveDriverError.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"HiveDriverError.js","sourceRoot":"","sources":["../../lib/errors/HiveDriverError.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;IAA6C,mCAAK;IAAlD;;IAAoD,CAAC;IAAD,sBAAC;AAAD,CAAC,AAArD,CAA6C,KAAK,GAAG"}
\ No newline at end of file
diff --git a/dist/errors/OperationStateError.d.ts b/dist/errors/OperationStateError.d.ts
deleted file mode 100644
index 53e6ef31..00000000
--- a/dist/errors/OperationStateError.d.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import HiveDriverError from "./HiveDriverError";
-import { GetOperationStatusResponse } from "../hive/Commands/GetOperationStatusCommand";
-export default class OperationStateError extends HiveDriverError {
- response: GetOperationStatusResponse;
- constructor(message: string, response: GetOperationStatusResponse);
-}
diff --git a/dist/errors/OperationStateError.js b/dist/errors/OperationStateError.js
deleted file mode 100644
index 0ebcdad6..00000000
--- a/dist/errors/OperationStateError.js
+++ /dev/null
@@ -1,32 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var HiveDriverError_1 = __importDefault(require("./HiveDriverError"));
-var OperationStateError = /** @class */ (function (_super) {
- __extends(OperationStateError, _super);
- function OperationStateError(message, response) {
- var _this = _super.call(this, message) || this;
- _this.response = response;
- return _this;
- }
- return OperationStateError;
-}(HiveDriverError_1.default));
-exports.default = OperationStateError;
-//# sourceMappingURL=OperationStateError.js.map
\ No newline at end of file
diff --git a/dist/errors/OperationStateError.js.map b/dist/errors/OperationStateError.js.map
deleted file mode 100644
index 72a9f0a1..00000000
--- a/dist/errors/OperationStateError.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"OperationStateError.js","sourceRoot":"","sources":["../../lib/errors/OperationStateError.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,sEAAgD;AAGhD;IAAiD,uCAAe;IAG5D,6BAAY,OAAe,EAAE,QAAoC;QAAjE,YACI,kBAAM,OAAO,CAAC,SAGjB;QADG,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;;IAC7B,CAAC;IACL,0BAAC;AAAD,CAAC,AARD,CAAiD,yBAAe,GAQ/D"}
\ No newline at end of file
diff --git a/dist/errors/StatusError.d.ts b/dist/errors/StatusError.d.ts
deleted file mode 100644
index 06685d72..00000000
--- a/dist/errors/StatusError.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import { Status } from "../hive/Types";
-export default class StatusError implements Error {
- name: string;
- message: string;
- code: number;
- stack?: string;
- constructor(status: Status);
-}
diff --git a/dist/errors/StatusError.js b/dist/errors/StatusError.js
deleted file mode 100644
index 028a46b2..00000000
--- a/dist/errors/StatusError.js
+++ /dev/null
@@ -1,15 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var StatusError = /** @class */ (function () {
- function StatusError(status) {
- this.name = 'Status Error';
- this.message = status.errorMessage || '';
- this.code = status.errorCode || -1;
- if (Array.isArray(status.infoMessages)) {
- this.stack = status.infoMessages.join('\n');
- }
- }
- return StatusError;
-}());
-exports.default = StatusError;
-//# sourceMappingURL=StatusError.js.map
\ No newline at end of file
diff --git a/dist/errors/StatusError.js.map b/dist/errors/StatusError.js.map
deleted file mode 100644
index 01715095..00000000
--- a/dist/errors/StatusError.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"StatusError.js","sourceRoot":"","sources":["../../lib/errors/StatusError.ts"],"names":[],"mappings":";;AAEA;IAMI,qBAAY,MAAc;QACtB,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC;QAEnC,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE;YACpC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC/C;IACL,CAAC;IACL,kBAAC;AAAD,CAAC,AAfD,IAeC"}
\ No newline at end of file
diff --git a/dist/factory/StatusFactory.d.ts b/dist/factory/StatusFactory.d.ts
deleted file mode 100644
index a45fb12c..00000000
--- a/dist/factory/StatusFactory.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { TCLIServiceTypes, Status as TStatus } from "../hive/Types";
-import Status from "../dto/Status";
-export default class StatusFactory {
- private TCLIService_types;
- constructor(TCLIService_types: TCLIServiceTypes);
- /**
- * @param status thrift status object from API responses
- * @throws {StatusError}
- */
- create(status: TStatus): Status;
- private isSuccess;
- private isError;
- private isExecuting;
-}
diff --git a/dist/factory/StatusFactory.js b/dist/factory/StatusFactory.js
deleted file mode 100644
index d28aa008..00000000
--- a/dist/factory/StatusFactory.js
+++ /dev/null
@@ -1,40 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var Status_1 = __importDefault(require("../dto/Status"));
-var StatusError_1 = __importDefault(require("../errors/StatusError"));
-var StatusFactory = /** @class */ (function () {
- function StatusFactory(TCLIService_types) {
- this.TCLIService_types = TCLIService_types;
- }
- /**
- * @param status thrift status object from API responses
- * @throws {StatusError}
- */
- StatusFactory.prototype.create = function (status) {
- if (this.isError(status)) {
- throw new StatusError_1.default(status);
- }
- return new Status_1.default({
- success: this.isSuccess(status),
- executing: this.isExecuting(status),
- infoMessages: status.infoMessages || [],
- });
- };
- StatusFactory.prototype.isSuccess = function (status) {
- return (status.statusCode === this.TCLIService_types.TStatusCode.SUCCESS_STATUS
- || status.statusCode === this.TCLIService_types.TStatusCode.SUCCESS_WITH_INFO_STATUS);
- };
- StatusFactory.prototype.isError = function (status) {
- return (status.statusCode === this.TCLIService_types.TStatusCode.ERROR_STATUS
- || status.statusCode === this.TCLIService_types.TStatusCode.INVALID_HANDLE_STATUS);
- };
- StatusFactory.prototype.isExecuting = function (status) {
- return status.statusCode === this.TCLIService_types.TStatusCode.STILL_EXECUTING_STATUS;
- };
- return StatusFactory;
-}());
-exports.default = StatusFactory;
-//# sourceMappingURL=StatusFactory.js.map
\ No newline at end of file
diff --git a/dist/factory/StatusFactory.js.map b/dist/factory/StatusFactory.js.map
deleted file mode 100644
index bad64c19..00000000
--- a/dist/factory/StatusFactory.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"StatusFactory.js","sourceRoot":"","sources":["../../lib/factory/StatusFactory.ts"],"names":[],"mappings":";;;;;AACA,yDAAmC;AACnC,sEAAgD;AAEhD;IAGI,uBAAY,iBAAmC;QAC3C,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,CAAC;IAED;;;OAGG;IACH,8BAAM,GAAN,UAAO,MAAe;QAClB,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YACtB,MAAM,IAAI,qBAAW,CAAC,MAAM,CAAC,CAAC;SACjC;QAED,OAAO,IAAI,gBAAM,CAAC;YACd,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;YAC/B,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;YACnC,YAAY,EAAE,MAAM,CAAC,YAAY,IAAI,EAAE;SAC1C,CAAC,CAAC;IACP,CAAC;IAEO,iCAAS,GAAjB,UAAkB,MAAe;QAC7B,OAAO,CACH,MAAM,CAAC,UAAU,KAAK,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,cAAc;eACpE,MAAM,CAAC,UAAU,KAAK,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,wBAAwB,CACvF,CAAC;IACN,CAAC;IAEO,+BAAO,GAAf,UAAgB,MAAe;QAC3B,OAAO,CACH,MAAM,CAAC,UAAU,KAAK,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,YAAY;eAClE,MAAM,CAAC,UAAU,KAAK,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,qBAAqB,CACpF,CAAC;IACN,CAAC;IAEO,mCAAW,GAAnB,UAAoB,MAAe;QAC/B,OAAO,MAAM,CAAC,UAAU,KAAK,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,sBAAsB,CAAC;IAC3F,CAAC;IACL,oBAAC;AAAD,CAAC,AAxCD,IAwCC"}
\ No newline at end of file
diff --git a/dist/hive/Commands/BaseCommand.d.ts b/dist/hive/Commands/BaseCommand.d.ts
deleted file mode 100644
index 29353bf7..00000000
--- a/dist/hive/Commands/BaseCommand.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { ThriftClient, TCLIServiceTypes } from "../Types";
-export default abstract class BaseCommand {
- protected client: ThriftClient;
- protected TCLIService_types: TCLIServiceTypes;
- constructor(client: ThriftClient, TCLIService_types: TCLIServiceTypes);
- executeCommand(request: object, command: Function | void): Promise;
-}
diff --git a/dist/hive/Commands/BaseCommand.js b/dist/hive/Commands/BaseCommand.js
deleted file mode 100644
index ea6b3d2d..00000000
--- a/dist/hive/Commands/BaseCommand.js
+++ /dev/null
@@ -1,36 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var HiveDriverError_1 = __importDefault(require("../../errors/HiveDriverError"));
-var BaseCommand = /** @class */ (function () {
- function BaseCommand(client, TCLIService_types) {
- this.client = client;
- this.TCLIService_types = TCLIService_types;
- }
- BaseCommand.prototype.executeCommand = function (request, command) {
- var _this = this;
- return new Promise(function (resolve, reject) {
- if (typeof command !== 'function') {
- return reject(new HiveDriverError_1.default('Hive driver: the operation does not exist, try to choose another Thrift file.'));
- }
- try {
- command.call(_this.client, request, function (err, response) {
- if (err) {
- reject(err);
- }
- else {
- resolve(response);
- }
- });
- }
- catch (error) {
- reject(error);
- }
- });
- };
- return BaseCommand;
-}());
-exports.default = BaseCommand;
-//# sourceMappingURL=BaseCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/BaseCommand.js.map b/dist/hive/Commands/BaseCommand.js.map
deleted file mode 100644
index d3d18cc2..00000000
--- a/dist/hive/Commands/BaseCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"BaseCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/BaseCommand.ts"],"names":[],"mappings":";;;;;AACA,iFAA2D;AAE3D;IAII,qBAAY,MAAoB,EAAE,iBAAmC;QACjE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,CAAC;IAED,oCAAc,GAAd,UAAyB,OAAe,EAAE,OAAwB;QAAlE,iBAkBC;QAjBG,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;YAC/B,IAAI,OAAO,OAAO,KAAK,UAAU,EAAE;gBAC/B,OAAO,MAAM,CAAC,IAAI,yBAAe,CAAC,+EAA+E,CAAC,CAAC,CAAC;aACvH;YAED,IAAI;gBACA,OAAO,CAAC,IAAI,CAAC,KAAI,CAAC,MAAM,EAAE,OAAO,EAAE,UAAC,GAAU,EAAE,QAAkB;oBAC9D,IAAI,GAAG,EAAE;wBACL,MAAM,CAAC,GAAG,CAAC,CAAC;qBACf;yBAAM;wBACH,OAAO,CAAC,QAAQ,CAAC,CAAC;qBACrB;gBACL,CAAC,CAAC,CAAC;aACN;YAAC,OAAO,KAAK,EAAE;gBACZ,MAAM,CAAC,KAAK,CAAC,CAAC;aACjB;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IACL,kBAAC;AAAD,CAAC,AA5BD,IA4BC"}
\ No newline at end of file
diff --git a/dist/hive/Commands/CancelDelegationTokenCommand.d.ts b/dist/hive/Commands/CancelDelegationTokenCommand.d.ts
deleted file mode 100644
index cb488260..00000000
--- a/dist/hive/Commands/CancelDelegationTokenCommand.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { Status, SessionHandle } from "../Types";
-export declare type CancelDelegationTokenRequest = {
- sessionHandle: SessionHandle;
- delegationToken: string;
-};
-export declare type CancelDelegationTokenResponse = {
- status: Status;
-};
-export default class CancelDelegationTokenCommand extends BaseCommand {
- execute(data: CancelDelegationTokenRequest): Promise;
-}
diff --git a/dist/hive/Commands/CancelDelegationTokenCommand.js b/dist/hive/Commands/CancelDelegationTokenCommand.js
deleted file mode 100644
index 2698d34f..00000000
--- a/dist/hive/Commands/CancelDelegationTokenCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var CancelDelegationTokenCommand = /** @class */ (function (_super) {
- __extends(CancelDelegationTokenCommand, _super);
- function CancelDelegationTokenCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- CancelDelegationTokenCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TCancelDelegationTokenReq(data);
- return this.executeCommand(request, this.client.CancelDelegationToken);
- };
- return CancelDelegationTokenCommand;
-}(BaseCommand_1.default));
-exports.default = CancelDelegationTokenCommand;
-//# sourceMappingURL=CancelDelegationTokenCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/CancelDelegationTokenCommand.js.map b/dist/hive/Commands/CancelDelegationTokenCommand.js.map
deleted file mode 100644
index 1a4da95e..00000000
--- a/dist/hive/Commands/CancelDelegationTokenCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"CancelDelegationTokenCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/CancelDelegationTokenCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAYxC;IAA0D,gDAAW;IAArE;;IAMA,CAAC;IALG,8CAAO,GAAP,UAAQ,IAAkC;QACtC,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;QAE3E,OAAO,IAAI,CAAC,cAAc,CAAgC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAC1G,CAAC;IACL,mCAAC;AAAD,CAAC,AAND,CAA0D,qBAAW,GAMpE"}
\ No newline at end of file
diff --git a/dist/hive/Commands/CancelOperationCommand.d.ts b/dist/hive/Commands/CancelOperationCommand.d.ts
deleted file mode 100644
index 59e31112..00000000
--- a/dist/hive/Commands/CancelOperationCommand.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { Status, OperationHandle } from "../Types";
-export declare type CancelOperationRequest = {
- operationHandle: OperationHandle;
-};
-export declare type CancelOperationResponse = {
- status: Status;
-};
-export default class CancelOperationCommand extends BaseCommand {
- execute(data: CancelOperationRequest): Promise;
-}
diff --git a/dist/hive/Commands/CancelOperationCommand.js b/dist/hive/Commands/CancelOperationCommand.js
deleted file mode 100644
index 06edcd3a..00000000
--- a/dist/hive/Commands/CancelOperationCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var CancelOperationCommand = /** @class */ (function (_super) {
- __extends(CancelOperationCommand, _super);
- function CancelOperationCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- CancelOperationCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TCancelOperationReq(data);
- return this.executeCommand(request, this.client.CancelOperation);
- };
- return CancelOperationCommand;
-}(BaseCommand_1.default));
-exports.default = CancelOperationCommand;
-//# sourceMappingURL=CancelOperationCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/CancelOperationCommand.js.map b/dist/hive/Commands/CancelOperationCommand.js.map
deleted file mode 100644
index 4a71e45b..00000000
--- a/dist/hive/Commands/CancelOperationCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"CancelOperationCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/CancelOperationCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAWxC;IAAoD,0CAAW;IAA/D;;IAMA,CAAC;IALG,wCAAO,GAAP,UAAQ,IAA4B;QAChC,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAErE,OAAO,IAAI,CAAC,cAAc,CAA0B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IAC9F,CAAC;IACL,6BAAC;AAAD,CAAC,AAND,CAAoD,qBAAW,GAM9D"}
\ No newline at end of file
diff --git a/dist/hive/Commands/CloseOperationCommand.d.ts b/dist/hive/Commands/CloseOperationCommand.d.ts
deleted file mode 100644
index 082d5acd..00000000
--- a/dist/hive/Commands/CloseOperationCommand.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { Status, OperationHandle } from "../Types";
-export declare type CloseOperationRequest = {
- operationHandle: OperationHandle;
-};
-export declare type CloseOperationResponse = {
- status: Status;
-};
-export default class CloseOperationCommand extends BaseCommand {
- execute(data: CloseOperationRequest): Promise;
-}
diff --git a/dist/hive/Commands/CloseOperationCommand.js b/dist/hive/Commands/CloseOperationCommand.js
deleted file mode 100644
index 0056d35b..00000000
--- a/dist/hive/Commands/CloseOperationCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var CloseOperationCommand = /** @class */ (function (_super) {
- __extends(CloseOperationCommand, _super);
- function CloseOperationCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- CloseOperationCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TCloseOperationReq(data);
- return this.executeCommand(request, this.client.CloseOperation);
- };
- return CloseOperationCommand;
-}(BaseCommand_1.default));
-exports.default = CloseOperationCommand;
-//# sourceMappingURL=CloseOperationCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/CloseOperationCommand.js.map b/dist/hive/Commands/CloseOperationCommand.js.map
deleted file mode 100644
index 75629568..00000000
--- a/dist/hive/Commands/CloseOperationCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"CloseOperationCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/CloseOperationCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAWxC;IAAmD,yCAAW;IAA9D;;IAMA,CAAC;IALG,uCAAO,GAAP,UAAQ,IAA2B;QAC/B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAEpE,OAAO,IAAI,CAAC,cAAc,CAAyB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IAC5F,CAAC;IACL,4BAAC;AAAD,CAAC,AAND,CAAmD,qBAAW,GAM7D"}
\ No newline at end of file
diff --git a/dist/hive/Commands/CloseSessionCommand.d.ts b/dist/hive/Commands/CloseSessionCommand.d.ts
deleted file mode 100644
index ab39b069..00000000
--- a/dist/hive/Commands/CloseSessionCommand.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { SessionHandle, Status } from "../Types";
-import BaseCommand from "./BaseCommand";
-export declare type CloseSessionRequest = {
- sessionHandle: SessionHandle;
-};
-export declare type CloseSessionResponse = {
- status: Status;
-};
-export default class CloseSessionCommand extends BaseCommand {
- execute(openSessionRequest: CloseSessionRequest): Promise;
-}
diff --git a/dist/hive/Commands/CloseSessionCommand.js b/dist/hive/Commands/CloseSessionCommand.js
deleted file mode 100644
index d3c9ebc9..00000000
--- a/dist/hive/Commands/CloseSessionCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var CloseSessionCommand = /** @class */ (function (_super) {
- __extends(CloseSessionCommand, _super);
- function CloseSessionCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- CloseSessionCommand.prototype.execute = function (openSessionRequest) {
- var request = new this.TCLIService_types.TCloseSessionReq(openSessionRequest);
- return this.executeCommand(request, this.client.CloseSession);
- };
- return CloseSessionCommand;
-}(BaseCommand_1.default));
-exports.default = CloseSessionCommand;
-//# sourceMappingURL=CloseSessionCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/CloseSessionCommand.js.map b/dist/hive/Commands/CloseSessionCommand.js.map
deleted file mode 100644
index 6fe0b356..00000000
--- a/dist/hive/Commands/CloseSessionCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"CloseSessionCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/CloseSessionCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,8DAAwC;AAUxC;IAAiD,uCAAW;IAA5D;;IAMA,CAAC;IALG,qCAAO,GAAP,UAAQ,kBAAuC;QAC3C,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;QAEhF,OAAO,IAAI,CAAC,cAAc,CAAuB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACxF,CAAC;IACL,0BAAC;AAAD,CAAC,AAND,CAAiD,qBAAW,GAM3D"}
\ No newline at end of file
diff --git a/dist/hive/Commands/ExecuteStatementCommand.d.ts b/dist/hive/Commands/ExecuteStatementCommand.d.ts
deleted file mode 100644
index 1348e02c..00000000
--- a/dist/hive/Commands/ExecuteStatementCommand.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-///
-import { SessionHandle, Status, OperationHandle } from "../Types";
-import BaseCommand from "./BaseCommand";
-export declare type ExecuteStatementRequest = {
- sessionHandle: SessionHandle;
- statement: string;
- confOverlay?: Map;
- runAsync?: boolean;
- queryTimeout?: Buffer;
-};
-export declare type ExecuteStatementResponse = {
- status: Status;
- operationHandle: OperationHandle;
-};
-export default class ExecuteStatementCommand extends BaseCommand {
- execute(executeStatementRequest: ExecuteStatementRequest): Promise;
-}
diff --git a/dist/hive/Commands/ExecuteStatementCommand.js b/dist/hive/Commands/ExecuteStatementCommand.js
deleted file mode 100644
index 466a5a07..00000000
--- a/dist/hive/Commands/ExecuteStatementCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var ExecuteStatementCommand = /** @class */ (function (_super) {
- __extends(ExecuteStatementCommand, _super);
- function ExecuteStatementCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- ExecuteStatementCommand.prototype.execute = function (executeStatementRequest) {
- var request = new this.TCLIService_types.TExecuteStatementReq(executeStatementRequest);
- return this.executeCommand(request, this.client.ExecuteStatement);
- };
- return ExecuteStatementCommand;
-}(BaseCommand_1.default));
-exports.default = ExecuteStatementCommand;
-//# sourceMappingURL=ExecuteStatementCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/ExecuteStatementCommand.js.map b/dist/hive/Commands/ExecuteStatementCommand.js.map
deleted file mode 100644
index fa12fa6d..00000000
--- a/dist/hive/Commands/ExecuteStatementCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ExecuteStatementCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/ExecuteStatementCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,8DAAwC;AAexC;IAAqD,2CAAW;IAAhE;;IAMA,CAAC;IALG,yCAAO,GAAP,UAAQ,uBAAgD;QACpD,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,CAAC;QAEzF,OAAO,IAAI,CAAC,cAAc,CAA2B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAChG,CAAC;IACL,8BAAC;AAAD,CAAC,AAND,CAAqD,qBAAW,GAM/D"}
\ No newline at end of file
diff --git a/dist/hive/Commands/FetchResultsCommand.d.ts b/dist/hive/Commands/FetchResultsCommand.d.ts
deleted file mode 100644
index 115493e7..00000000
--- a/dist/hive/Commands/FetchResultsCommand.d.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { OperationHandle, Status, RowSet } from "../Types";
-/**
- * @param orientation - TCLIService_types.TFetchOrientation
- * @param fetchType - 0 represents Query output. 1 represents Log
- */
-export declare type FetchResultsRequest = {
- operationHandle: OperationHandle;
- orientation: number;
- maxRows: number;
- fetchType?: number;
-};
-export declare type FetchResultsResponse = {
- status: Status;
- hasMoreRows?: boolean;
- results?: RowSet;
-};
-export default class FetchResultsCommand extends BaseCommand {
- execute(data: FetchResultsRequest): Promise;
-}
diff --git a/dist/hive/Commands/FetchResultsCommand.js b/dist/hive/Commands/FetchResultsCommand.js
deleted file mode 100644
index 2030eb76..00000000
--- a/dist/hive/Commands/FetchResultsCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var FetchResultsCommand = /** @class */ (function (_super) {
- __extends(FetchResultsCommand, _super);
- function FetchResultsCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- FetchResultsCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TFetchResultsReq(data);
- return this.executeCommand(request, this.client.FetchResults);
- };
- return FetchResultsCommand;
-}(BaseCommand_1.default));
-exports.default = FetchResultsCommand;
-//# sourceMappingURL=FetchResultsCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/FetchResultsCommand.js.map b/dist/hive/Commands/FetchResultsCommand.js.map
deleted file mode 100644
index 55c11989..00000000
--- a/dist/hive/Commands/FetchResultsCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"FetchResultsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/FetchResultsCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAoBxC;IAAiD,uCAAW;IAA5D;;IAMA,CAAC;IALG,qCAAO,GAAP,UAAQ,IAAyB;QAC7B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAElE,OAAO,IAAI,CAAC,cAAc,CAAuB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACxF,CAAC;IACL,0BAAC;AAAD,CAAC,AAND,CAAiD,qBAAW,GAM3D"}
\ No newline at end of file
diff --git a/dist/hive/Commands/GetCatalogsCommand.d.ts b/dist/hive/Commands/GetCatalogsCommand.d.ts
deleted file mode 100644
index a3b1539e..00000000
--- a/dist/hive/Commands/GetCatalogsCommand.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { Status, SessionHandle, OperationHandle } from "../Types";
-export declare type GetCatalogsRequest = {
- sessionHandle: SessionHandle;
-};
-export declare type GetCatalogsResponse = {
- status: Status;
- operationHandle: OperationHandle;
-};
-export default class GetCatalogsCommand extends BaseCommand {
- execute(data: GetCatalogsRequest): Promise;
-}
diff --git a/dist/hive/Commands/GetCatalogsCommand.js b/dist/hive/Commands/GetCatalogsCommand.js
deleted file mode 100644
index fe5f9d01..00000000
--- a/dist/hive/Commands/GetCatalogsCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var GetCatalogsCommand = /** @class */ (function (_super) {
- __extends(GetCatalogsCommand, _super);
- function GetCatalogsCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- GetCatalogsCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TGetCatalogsReq(data);
- return this.executeCommand(request, this.client.GetCatalogs);
- };
- return GetCatalogsCommand;
-}(BaseCommand_1.default));
-exports.default = GetCatalogsCommand;
-//# sourceMappingURL=GetCatalogsCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/GetCatalogsCommand.js.map b/dist/hive/Commands/GetCatalogsCommand.js.map
deleted file mode 100644
index be2c365f..00000000
--- a/dist/hive/Commands/GetCatalogsCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GetCatalogsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetCatalogsCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAYxC;IAAgD,sCAAW;IAA3D;;IAMA,CAAC;IALG,oCAAO,GAAP,UAAQ,IAAwB;QAC5B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAEjE,OAAO,IAAI,CAAC,cAAc,CAAsB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACtF,CAAC;IACL,yBAAC;AAAD,CAAC,AAND,CAAgD,qBAAW,GAM1D"}
\ No newline at end of file
diff --git a/dist/hive/Commands/GetColumnsCommand.d.ts b/dist/hive/Commands/GetColumnsCommand.d.ts
deleted file mode 100644
index cc653f65..00000000
--- a/dist/hive/Commands/GetColumnsCommand.d.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { Status, SessionHandle, OperationHandle } from "../Types";
-export declare type GetColumnsRequest = {
- sessionHandle: SessionHandle;
- catalogName?: string;
- schemaName?: string;
- tableName?: string;
- columnName?: string;
-};
-export declare type GetColumnsResponse = {
- status: Status;
- operationHandle: OperationHandle;
-};
-export default class GetColumnsCommand extends BaseCommand {
- execute(data: GetColumnsRequest): Promise;
-}
diff --git a/dist/hive/Commands/GetColumnsCommand.js b/dist/hive/Commands/GetColumnsCommand.js
deleted file mode 100644
index 2610bb37..00000000
--- a/dist/hive/Commands/GetColumnsCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var GetColumnsCommand = /** @class */ (function (_super) {
- __extends(GetColumnsCommand, _super);
- function GetColumnsCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- GetColumnsCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TGetColumnsReq(data);
- return this.executeCommand(request, this.client.GetColumns);
- };
- return GetColumnsCommand;
-}(BaseCommand_1.default));
-exports.default = GetColumnsCommand;
-//# sourceMappingURL=GetColumnsCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/GetColumnsCommand.js.map b/dist/hive/Commands/GetColumnsCommand.js.map
deleted file mode 100644
index cc4450f5..00000000
--- a/dist/hive/Commands/GetColumnsCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GetColumnsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetColumnsCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAgBxC;IAA+C,qCAAW;IAA1D;;IAMA,CAAC;IALG,mCAAO,GAAP,UAAQ,IAAuB;QAC3B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAEhE,OAAO,IAAI,CAAC,cAAc,CAAqB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACpF,CAAC;IACL,wBAAC;AAAD,CAAC,AAND,CAA+C,qBAAW,GAMzD"}
\ No newline at end of file
diff --git a/dist/hive/Commands/GetCrossReferenceCommand.d.ts b/dist/hive/Commands/GetCrossReferenceCommand.d.ts
deleted file mode 100644
index 3414d4f0..00000000
--- a/dist/hive/Commands/GetCrossReferenceCommand.d.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { Status, SessionHandle, OperationHandle } from "../Types";
-export declare type GetCrossReferenceRequest = {
- sessionHandle: SessionHandle;
- parentCatalogName?: string;
- parentSchemaName: string;
- parentTableName: string;
- foreignCatalogName?: string;
- foreignSchemaName: string;
- foreignTableName: string;
-};
-export declare type GetCrossReferenceResponse = {
- status: Status;
- operationHandle: OperationHandle;
-};
-export default class GetCrossReferenceCommand extends BaseCommand {
- execute(data: GetCrossReferenceRequest): Promise;
-}
diff --git a/dist/hive/Commands/GetCrossReferenceCommand.js b/dist/hive/Commands/GetCrossReferenceCommand.js
deleted file mode 100644
index bbce6875..00000000
--- a/dist/hive/Commands/GetCrossReferenceCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var GetCrossReferenceCommand = /** @class */ (function (_super) {
- __extends(GetCrossReferenceCommand, _super);
- function GetCrossReferenceCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- GetCrossReferenceCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TGetCrossReferenceReq(data);
- return this.executeCommand(request, this.client.GetCrossReference);
- };
- return GetCrossReferenceCommand;
-}(BaseCommand_1.default));
-exports.default = GetCrossReferenceCommand;
-//# sourceMappingURL=GetCrossReferenceCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/GetCrossReferenceCommand.js.map b/dist/hive/Commands/GetCrossReferenceCommand.js.map
deleted file mode 100644
index 09338c9e..00000000
--- a/dist/hive/Commands/GetCrossReferenceCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GetCrossReferenceCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetCrossReferenceCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAkBxC;IAAsD,4CAAW;IAAjE;;IAMA,CAAC;IALG,0CAAO,GAAP,UAAQ,IAA8B;QAClC,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;QAEvE,OAAO,IAAI,CAAC,cAAc,CAA4B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAClG,CAAC;IACL,+BAAC;AAAD,CAAC,AAND,CAAsD,qBAAW,GAMhE"}
\ No newline at end of file
diff --git a/dist/hive/Commands/GetDelegationTokenCommand.d.ts b/dist/hive/Commands/GetDelegationTokenCommand.d.ts
deleted file mode 100644
index 21fa96a6..00000000
--- a/dist/hive/Commands/GetDelegationTokenCommand.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { Status, SessionHandle } from "../Types";
-export declare type GetDelegationTokenRequest = {
- sessionHandle: SessionHandle;
- owner: string;
- renewer: string;
-};
-export declare type GetDelegationTokenResponse = {
- status: Status;
- delegationToken?: string;
-};
-export default class GetDelegationTokenCommand extends BaseCommand {
- execute(data: GetDelegationTokenRequest): Promise;
-}
diff --git a/dist/hive/Commands/GetDelegationTokenCommand.js b/dist/hive/Commands/GetDelegationTokenCommand.js
deleted file mode 100644
index 0d87c820..00000000
--- a/dist/hive/Commands/GetDelegationTokenCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var GetDelegationTokenCommand = /** @class */ (function (_super) {
- __extends(GetDelegationTokenCommand, _super);
- function GetDelegationTokenCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- GetDelegationTokenCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TGetDelegationTokenReq(data);
- return this.executeCommand(request, this.client.GetDelegationToken);
- };
- return GetDelegationTokenCommand;
-}(BaseCommand_1.default));
-exports.default = GetDelegationTokenCommand;
-//# sourceMappingURL=GetDelegationTokenCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/GetDelegationTokenCommand.js.map b/dist/hive/Commands/GetDelegationTokenCommand.js.map
deleted file mode 100644
index 52af9ee0..00000000
--- a/dist/hive/Commands/GetDelegationTokenCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GetDelegationTokenCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetDelegationTokenCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAcxC;IAAuD,6CAAW;IAAlE;;IAMA,CAAC;IALG,2CAAO,GAAP,UAAQ,IAA+B;QACnC,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAExE,OAAO,IAAI,CAAC,cAAc,CAA6B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IACpG,CAAC;IACL,gCAAC;AAAD,CAAC,AAND,CAAuD,qBAAW,GAMjE"}
\ No newline at end of file
diff --git a/dist/hive/Commands/GetFunctionsCommand.d.ts b/dist/hive/Commands/GetFunctionsCommand.d.ts
deleted file mode 100644
index ad33dd1b..00000000
--- a/dist/hive/Commands/GetFunctionsCommand.d.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { Status, SessionHandle, OperationHandle } from "../Types";
-export declare type GetFunctionsRequest = {
- sessionHandle: SessionHandle;
- catalogName?: string;
- schemaName?: string;
- functionName: string;
-};
-export declare type GetFunctionsResponse = {
- status: Status;
- operationHandle: OperationHandle;
-};
-export default class GetFunctionsCommand extends BaseCommand {
- execute(data: GetFunctionsRequest): Promise;
-}
diff --git a/dist/hive/Commands/GetFunctionsCommand.js b/dist/hive/Commands/GetFunctionsCommand.js
deleted file mode 100644
index 4e1d3068..00000000
--- a/dist/hive/Commands/GetFunctionsCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var GetFunctionsCommand = /** @class */ (function (_super) {
- __extends(GetFunctionsCommand, _super);
- function GetFunctionsCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- GetFunctionsCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TGetFunctionsReq(data);
- return this.executeCommand(request, this.client.GetFunctions);
- };
- return GetFunctionsCommand;
-}(BaseCommand_1.default));
-exports.default = GetFunctionsCommand;
-//# sourceMappingURL=GetFunctionsCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/GetFunctionsCommand.js.map b/dist/hive/Commands/GetFunctionsCommand.js.map
deleted file mode 100644
index 3a99c091..00000000
--- a/dist/hive/Commands/GetFunctionsCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GetFunctionsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetFunctionsCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAexC;IAAiD,uCAAW;IAA5D;;IAMA,CAAC;IALG,qCAAO,GAAP,UAAQ,IAAyB;QAC7B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAElE,OAAO,IAAI,CAAC,cAAc,CAAuB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACxF,CAAC;IACL,0BAAC;AAAD,CAAC,AAND,CAAiD,qBAAW,GAM3D"}
\ No newline at end of file
diff --git a/dist/hive/Commands/GetInfoCommand.d.ts b/dist/hive/Commands/GetInfoCommand.d.ts
deleted file mode 100644
index 067f9c27..00000000
--- a/dist/hive/Commands/GetInfoCommand.d.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { Status, GetInfoValue, SessionHandle } from "../Types";
-/**
- * @param infoType TCLISErvice_types.TGetInfoType
- */
-export declare type GetInfoRequest = {
- sessionHandle: SessionHandle;
- infoType: number;
-};
-export declare type GetInfoResponse = {
- status: Status;
- infoValue: GetInfoValue;
-};
-export default class GetInfoCommand extends BaseCommand {
- execute(data: GetInfoRequest): Promise;
-}
diff --git a/dist/hive/Commands/GetInfoCommand.js b/dist/hive/Commands/GetInfoCommand.js
deleted file mode 100644
index 44d3cceb..00000000
--- a/dist/hive/Commands/GetInfoCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var GetInfoCommand = /** @class */ (function (_super) {
- __extends(GetInfoCommand, _super);
- function GetInfoCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- GetInfoCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TGetInfoReq(data);
- return this.executeCommand(request, this.client.GetInfo);
- };
- return GetInfoCommand;
-}(BaseCommand_1.default));
-exports.default = GetInfoCommand;
-//# sourceMappingURL=GetInfoCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/GetInfoCommand.js.map b/dist/hive/Commands/GetInfoCommand.js.map
deleted file mode 100644
index cde29131..00000000
--- a/dist/hive/Commands/GetInfoCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GetInfoCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetInfoCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAgBxC;IAA4C,kCAAW;IAAvD;;IAMA,CAAC;IALG,gCAAO,GAAP,UAAQ,IAAoB;QACxB,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAE7D,OAAO,IAAI,CAAC,cAAc,CAAkB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9E,CAAC;IACL,qBAAC;AAAD,CAAC,AAND,CAA4C,qBAAW,GAMtD"}
\ No newline at end of file
diff --git a/dist/hive/Commands/GetOperationStatusCommand.d.ts b/dist/hive/Commands/GetOperationStatusCommand.d.ts
deleted file mode 100644
index 2d688741..00000000
--- a/dist/hive/Commands/GetOperationStatusCommand.d.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-///
-import BaseCommand from "./BaseCommand";
-import { Status, OperationHandle, ProgressUpdateResponse } from "../Types";
-export declare type GetOperationStatusRequest = {
- operationHandle: OperationHandle;
- getProgressUpdate?: boolean;
-};
-export declare type GetOperationStatusResponse = {
- status: Status;
- operationState?: number;
- sqlState?: string;
- errorCode?: number;
- errorMessage?: string;
- taskStatus?: string;
- operationStarted?: Buffer;
- operationCompleted?: Buffer;
- hasResultSet?: boolean;
- progressUpdateResponse?: ProgressUpdateResponse;
- numModifiedRows?: Buffer;
-};
-export default class GetOperationStatusCommand extends BaseCommand {
- execute(data: GetOperationStatusRequest): Promise;
-}
diff --git a/dist/hive/Commands/GetOperationStatusCommand.js b/dist/hive/Commands/GetOperationStatusCommand.js
deleted file mode 100644
index 059bea03..00000000
--- a/dist/hive/Commands/GetOperationStatusCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var GetOperationStatusCommand = /** @class */ (function (_super) {
- __extends(GetOperationStatusCommand, _super);
- function GetOperationStatusCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- GetOperationStatusCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TGetOperationStatusReq(data);
- return this.executeCommand(request, this.client.GetOperationStatus);
- };
- return GetOperationStatusCommand;
-}(BaseCommand_1.default));
-exports.default = GetOperationStatusCommand;
-//# sourceMappingURL=GetOperationStatusCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/GetOperationStatusCommand.js.map b/dist/hive/Commands/GetOperationStatusCommand.js.map
deleted file mode 100644
index cc922a08..00000000
--- a/dist/hive/Commands/GetOperationStatusCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GetOperationStatusCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetOperationStatusCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAsBxC;IAAuD,6CAAW;IAAlE;;IAMA,CAAC;IALG,2CAAO,GAAP,UAAQ,IAA+B;QACnC,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAExE,OAAO,IAAI,CAAC,cAAc,CAA6B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IACpG,CAAC;IACL,gCAAC;AAAD,CAAC,AAND,CAAuD,qBAAW,GAMjE"}
\ No newline at end of file
diff --git a/dist/hive/Commands/GetPrimaryKeysCommand.d.ts b/dist/hive/Commands/GetPrimaryKeysCommand.d.ts
deleted file mode 100644
index f054d69b..00000000
--- a/dist/hive/Commands/GetPrimaryKeysCommand.d.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { Status, SessionHandle, OperationHandle } from "../Types";
-export declare type GetPrimaryKeysRequest = {
- sessionHandle: SessionHandle;
- catalogName?: string;
- schemaName: string;
- tableName: string;
-};
-export declare type GetPrimaryKeysResponse = {
- status: Status;
- operationHandle: OperationHandle;
-};
-export default class GetPrimaryKeysCommand extends BaseCommand {
- execute(data: GetPrimaryKeysRequest): Promise;
-}
diff --git a/dist/hive/Commands/GetPrimaryKeysCommand.js b/dist/hive/Commands/GetPrimaryKeysCommand.js
deleted file mode 100644
index 8fafb4b5..00000000
--- a/dist/hive/Commands/GetPrimaryKeysCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var GetPrimaryKeysCommand = /** @class */ (function (_super) {
- __extends(GetPrimaryKeysCommand, _super);
- function GetPrimaryKeysCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- GetPrimaryKeysCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TGetPrimaryKeysReq(data);
- return this.executeCommand(request, this.client.GetPrimaryKeys);
- };
- return GetPrimaryKeysCommand;
-}(BaseCommand_1.default));
-exports.default = GetPrimaryKeysCommand;
-//# sourceMappingURL=GetPrimaryKeysCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/GetPrimaryKeysCommand.js.map b/dist/hive/Commands/GetPrimaryKeysCommand.js.map
deleted file mode 100644
index f8eec389..00000000
--- a/dist/hive/Commands/GetPrimaryKeysCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GetPrimaryKeysCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetPrimaryKeysCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAexC;IAAmD,yCAAW;IAA9D;;IAMA,CAAC;IALG,uCAAO,GAAP,UAAQ,IAA2B;QAC/B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAEpE,OAAO,IAAI,CAAC,cAAc,CAAyB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IAC5F,CAAC;IACL,4BAAC;AAAD,CAAC,AAND,CAAmD,qBAAW,GAM7D"}
\ No newline at end of file
diff --git a/dist/hive/Commands/GetQueryIdCommand.d.ts b/dist/hive/Commands/GetQueryIdCommand.d.ts
deleted file mode 100644
index afb4dec2..00000000
--- a/dist/hive/Commands/GetQueryIdCommand.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { OperationHandle } from "../Types";
-export declare type GetQueryIdRequest = {
- operationHandle: OperationHandle;
-};
-export declare type GetQueryIdResponse = {
- queryId: string;
-};
-export default class GetQueryIdCommand extends BaseCommand {
- execute(data: GetQueryIdRequest): Promise;
-}
diff --git a/dist/hive/Commands/GetQueryIdCommand.js b/dist/hive/Commands/GetQueryIdCommand.js
deleted file mode 100644
index 0e9845f8..00000000
--- a/dist/hive/Commands/GetQueryIdCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var GetQueryIdCommand = /** @class */ (function (_super) {
- __extends(GetQueryIdCommand, _super);
- function GetQueryIdCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- GetQueryIdCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TGetQueryIdReq(data);
- return this.executeCommand(request, this.client.GetQueryId);
- };
- return GetQueryIdCommand;
-}(BaseCommand_1.default));
-exports.default = GetQueryIdCommand;
-//# sourceMappingURL=GetQueryIdCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/GetQueryIdCommand.js.map b/dist/hive/Commands/GetQueryIdCommand.js.map
deleted file mode 100644
index 21ce41af..00000000
--- a/dist/hive/Commands/GetQueryIdCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GetQueryIdCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetQueryIdCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAWxC;IAA+C,qCAAW;IAA1D;;IAMA,CAAC;IALG,mCAAO,GAAP,UAAQ,IAAuB;QAC3B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAEhE,OAAO,IAAI,CAAC,cAAc,CAAqB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACpF,CAAC;IACL,wBAAC;AAAD,CAAC,AAND,CAA+C,qBAAW,GAMzD"}
\ No newline at end of file
diff --git a/dist/hive/Commands/GetResultSetMetadataCommand.d.ts b/dist/hive/Commands/GetResultSetMetadataCommand.d.ts
deleted file mode 100644
index c8aefc8c..00000000
--- a/dist/hive/Commands/GetResultSetMetadataCommand.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { TableSchema, Status, OperationHandle } from "../Types";
-import BaseCommand from "./BaseCommand";
-export declare type GetResultSetMetadataRequest = {
- operationHandle: OperationHandle;
-};
-export declare type GetResultSetMetadataResponse = {
- status: Status;
- schema: TableSchema;
-};
-export default class GetResultSetMetadataCommand extends BaseCommand {
- execute(getResultSetMetadataRequest: GetResultSetMetadataRequest): Promise;
-}
diff --git a/dist/hive/Commands/GetResultSetMetadataCommand.js b/dist/hive/Commands/GetResultSetMetadataCommand.js
deleted file mode 100644
index b44bbabe..00000000
--- a/dist/hive/Commands/GetResultSetMetadataCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var GetResultSetMetadataCommand = /** @class */ (function (_super) {
- __extends(GetResultSetMetadataCommand, _super);
- function GetResultSetMetadataCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- GetResultSetMetadataCommand.prototype.execute = function (getResultSetMetadataRequest) {
- var request = new this.TCLIService_types.TGetResultSetMetadataReq(getResultSetMetadataRequest);
- return this.executeCommand(request, this.client.GetResultSetMetadata);
- };
- return GetResultSetMetadataCommand;
-}(BaseCommand_1.default));
-exports.default = GetResultSetMetadataCommand;
-//# sourceMappingURL=GetResultSetMetadataCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/GetResultSetMetadataCommand.js.map b/dist/hive/Commands/GetResultSetMetadataCommand.js.map
deleted file mode 100644
index 91446665..00000000
--- a/dist/hive/Commands/GetResultSetMetadataCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GetResultSetMetadataCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetResultSetMetadataCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,8DAAwC;AAWxC;IAAyD,+CAAW;IAApE;;IAMA,CAAC;IALG,6CAAO,GAAP,UAAQ,2BAAwD;QAC5D,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,2BAA2B,CAAC,CAAC;QAEjG,OAAO,IAAI,CAAC,cAAc,CAA+B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACxG,CAAC;IACL,kCAAC;AAAD,CAAC,AAND,CAAyD,qBAAW,GAMnE"}
\ No newline at end of file
diff --git a/dist/hive/Commands/GetSchemasCommand.d.ts b/dist/hive/Commands/GetSchemasCommand.d.ts
deleted file mode 100644
index e6e5499e..00000000
--- a/dist/hive/Commands/GetSchemasCommand.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { Status, SessionHandle, OperationHandle } from "../Types";
-export declare type GetSchemasRequest = {
- sessionHandle: SessionHandle;
- catalogName?: string;
- schemaName?: string;
-};
-export declare type GetSchemasResponse = {
- status: Status;
- operationHandle: OperationHandle;
-};
-export default class GetSchemasCommand extends BaseCommand {
- execute(data: GetSchemasRequest): Promise;
-}
diff --git a/dist/hive/Commands/GetSchemasCommand.js b/dist/hive/Commands/GetSchemasCommand.js
deleted file mode 100644
index 0ec34ea5..00000000
--- a/dist/hive/Commands/GetSchemasCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var GetSchemasCommand = /** @class */ (function (_super) {
- __extends(GetSchemasCommand, _super);
- function GetSchemasCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- GetSchemasCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TGetSchemasReq(data);
- return this.executeCommand(request, this.client.GetSchemas);
- };
- return GetSchemasCommand;
-}(BaseCommand_1.default));
-exports.default = GetSchemasCommand;
-//# sourceMappingURL=GetSchemasCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/GetSchemasCommand.js.map b/dist/hive/Commands/GetSchemasCommand.js.map
deleted file mode 100644
index 944d4adc..00000000
--- a/dist/hive/Commands/GetSchemasCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GetSchemasCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetSchemasCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAcxC;IAA+C,qCAAW;IAA1D;;IAMA,CAAC;IALG,mCAAO,GAAP,UAAQ,IAAuB;QAC3B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAEhE,OAAO,IAAI,CAAC,cAAc,CAAqB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACpF,CAAC;IACL,wBAAC;AAAD,CAAC,AAND,CAA+C,qBAAW,GAMzD"}
\ No newline at end of file
diff --git a/dist/hive/Commands/GetTableTypesCommand.d.ts b/dist/hive/Commands/GetTableTypesCommand.d.ts
deleted file mode 100644
index 8c319d9d..00000000
--- a/dist/hive/Commands/GetTableTypesCommand.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { Status, SessionHandle, OperationHandle } from "../Types";
-export declare type GetTableTypesRequest = {
- sessionHandle: SessionHandle;
-};
-export declare type GetTableTypesResponse = {
- status: Status;
- operationHandle: OperationHandle;
-};
-export default class GetTableTypesCommand extends BaseCommand {
- execute(data: GetTableTypesRequest): Promise;
-}
diff --git a/dist/hive/Commands/GetTableTypesCommand.js b/dist/hive/Commands/GetTableTypesCommand.js
deleted file mode 100644
index c858c780..00000000
--- a/dist/hive/Commands/GetTableTypesCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var GetTableTypesCommand = /** @class */ (function (_super) {
- __extends(GetTableTypesCommand, _super);
- function GetTableTypesCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- GetTableTypesCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TGetTableTypesReq(data);
- return this.executeCommand(request, this.client.GetTableTypes);
- };
- return GetTableTypesCommand;
-}(BaseCommand_1.default));
-exports.default = GetTableTypesCommand;
-//# sourceMappingURL=GetTableTypesCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/GetTableTypesCommand.js.map b/dist/hive/Commands/GetTableTypesCommand.js.map
deleted file mode 100644
index d5253007..00000000
--- a/dist/hive/Commands/GetTableTypesCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GetTableTypesCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetTableTypesCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAYxC;IAAkD,wCAAW;IAA7D;;IAMA,CAAC;IALG,sCAAO,GAAP,UAAQ,IAA0B;QAC9B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAEnE,OAAO,IAAI,CAAC,cAAc,CAAwB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC1F,CAAC;IACL,2BAAC;AAAD,CAAC,AAND,CAAkD,qBAAW,GAM5D"}
\ No newline at end of file
diff --git a/dist/hive/Commands/GetTablesCommand.d.ts b/dist/hive/Commands/GetTablesCommand.d.ts
deleted file mode 100644
index 6e10e5bb..00000000
--- a/dist/hive/Commands/GetTablesCommand.d.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { Status, SessionHandle, OperationHandle } from "../Types";
-export declare type GetTablesRequest = {
- sessionHandle: SessionHandle;
- catalogName?: string;
- schemaName?: string;
- tableName?: string;
- tableTypes?: Array;
-};
-export declare type GetTablesResponse = {
- status: Status;
- operationHandle: OperationHandle;
-};
-export default class GetTablesCommand extends BaseCommand {
- execute(data: GetTablesRequest): Promise;
-}
diff --git a/dist/hive/Commands/GetTablesCommand.js b/dist/hive/Commands/GetTablesCommand.js
deleted file mode 100644
index 0c4c82e6..00000000
--- a/dist/hive/Commands/GetTablesCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var GetTablesCommand = /** @class */ (function (_super) {
- __extends(GetTablesCommand, _super);
- function GetTablesCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- GetTablesCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TGetTablesReq(data);
- return this.executeCommand(request, this.client.GetTables);
- };
- return GetTablesCommand;
-}(BaseCommand_1.default));
-exports.default = GetTablesCommand;
-//# sourceMappingURL=GetTablesCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/GetTablesCommand.js.map b/dist/hive/Commands/GetTablesCommand.js.map
deleted file mode 100644
index fa61a153..00000000
--- a/dist/hive/Commands/GetTablesCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GetTablesCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetTablesCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAgBxC;IAA8C,oCAAW;IAAzD;;IAMA,CAAC;IALG,kCAAO,GAAP,UAAQ,IAAsB;QAC1B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC,cAAc,CAAoB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAClF,CAAC;IACL,uBAAC;AAAD,CAAC,AAND,CAA8C,qBAAW,GAMxD"}
\ No newline at end of file
diff --git a/dist/hive/Commands/GetTypeInfoCommand.d.ts b/dist/hive/Commands/GetTypeInfoCommand.d.ts
deleted file mode 100644
index 437010fb..00000000
--- a/dist/hive/Commands/GetTypeInfoCommand.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { Status, SessionHandle, OperationHandle } from "../Types";
-export declare type GetTypeInfoRequest = {
- sessionHandle: SessionHandle;
-};
-export declare type GetTypeInfoResponse = {
- status: Status;
- operationHandle: OperationHandle;
-};
-export default class GetTypeInfoCommand extends BaseCommand {
- execute(data: GetTypeInfoRequest): Promise;
-}
diff --git a/dist/hive/Commands/GetTypeInfoCommand.js b/dist/hive/Commands/GetTypeInfoCommand.js
deleted file mode 100644
index 35573ea5..00000000
--- a/dist/hive/Commands/GetTypeInfoCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var GetTypeInfoCommand = /** @class */ (function (_super) {
- __extends(GetTypeInfoCommand, _super);
- function GetTypeInfoCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- GetTypeInfoCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TGetTypeInfoReq(data);
- return this.executeCommand(request, this.client.GetTypeInfo);
- };
- return GetTypeInfoCommand;
-}(BaseCommand_1.default));
-exports.default = GetTypeInfoCommand;
-//# sourceMappingURL=GetTypeInfoCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/GetTypeInfoCommand.js.map b/dist/hive/Commands/GetTypeInfoCommand.js.map
deleted file mode 100644
index ca8e8f75..00000000
--- a/dist/hive/Commands/GetTypeInfoCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GetTypeInfoCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetTypeInfoCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAYxC;IAAgD,sCAAW;IAA3D;;IAMA,CAAC;IALG,oCAAO,GAAP,UAAQ,IAAwB;QAC5B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAEjE,OAAO,IAAI,CAAC,cAAc,CAAsB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACtF,CAAC;IACL,yBAAC;AAAD,CAAC,AAND,CAAgD,qBAAW,GAM1D"}
\ No newline at end of file
diff --git a/dist/hive/Commands/OpenSessionCommand.d.ts b/dist/hive/Commands/OpenSessionCommand.d.ts
deleted file mode 100644
index 0423d36c..00000000
--- a/dist/hive/Commands/OpenSessionCommand.d.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import { Status, SessionHandle } from "../Types";
-import BaseCommand from "./BaseCommand";
-/**
- * For auth mechanism GSSAPI the host and service should be provided when session is opened.
- */
-declare type SessionConfiguration = {
- krb_host?: string;
- krb_service?: string;
- [key: string]: any;
-};
-/**
- * @param client_protocol One of the values TCLIService_types.TProtocolVersion. May be different depends on version of Hive you use.
- * For instance, for Hive lower that 3.x it is better to use HIVE_CLI_SERVICE_PROTOCOL_V8.
- * @param username if authorization is used you should define username and password
- * @param password
- * @param configuration in case of GSSAPI you should define configuration
- */
-export declare type OpenSessionRequest = {
- client_protocol: number;
- username?: string;
- password?: string;
- configuration?: SessionConfiguration;
-};
-export declare type OpenSessionResponse = {
- status: Status;
- serverProtocolVersion: number;
- sessionHandle: SessionHandle;
- configuration?: SessionConfiguration;
-};
-export default class OpenSessionCommand extends BaseCommand {
- execute(openSessionRequest: OpenSessionRequest): Promise;
-}
-export {};
diff --git a/dist/hive/Commands/OpenSessionCommand.js b/dist/hive/Commands/OpenSessionCommand.js
deleted file mode 100644
index 19411606..00000000
--- a/dist/hive/Commands/OpenSessionCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var OpenSessionCommand = /** @class */ (function (_super) {
- __extends(OpenSessionCommand, _super);
- function OpenSessionCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- OpenSessionCommand.prototype.execute = function (openSessionRequest) {
- var request = new this.TCLIService_types.TOpenSessionReq(openSessionRequest);
- return this.executeCommand(request, this.client.OpenSession);
- };
- return OpenSessionCommand;
-}(BaseCommand_1.default));
-exports.default = OpenSessionCommand;
-//# sourceMappingURL=OpenSessionCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/OpenSessionCommand.js.map b/dist/hive/Commands/OpenSessionCommand.js.map
deleted file mode 100644
index 20ce1148..00000000
--- a/dist/hive/Commands/OpenSessionCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"OpenSessionCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/OpenSessionCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,8DAAwC;AAgCxC;IAAgD,sCAAW;IAA3D;;IAMA,CAAC;IALG,oCAAO,GAAP,UAAQ,kBAAsC;QAC1C,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC;QAE/E,OAAO,IAAI,CAAC,cAAc,CAAsB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACtF,CAAC;IACL,yBAAC;AAAD,CAAC,AAND,CAAgD,qBAAW,GAM1D"}
\ No newline at end of file
diff --git a/dist/hive/Commands/RenewDelegationTokenCommand.d.ts b/dist/hive/Commands/RenewDelegationTokenCommand.d.ts
deleted file mode 100644
index f3e35a1c..00000000
--- a/dist/hive/Commands/RenewDelegationTokenCommand.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { Status, SessionHandle } from "../Types";
-export declare type RenewDelegationTokenRequest = {
- sessionHandle: SessionHandle;
- delegationToken: string;
-};
-export declare type RenewDelegationTokenResponse = {
- status: Status;
-};
-export default class RenewDelegationTokenCommand extends BaseCommand {
- execute(data: RenewDelegationTokenRequest): Promise;
-}
diff --git a/dist/hive/Commands/RenewDelegationTokenCommand.js b/dist/hive/Commands/RenewDelegationTokenCommand.js
deleted file mode 100644
index d0425571..00000000
--- a/dist/hive/Commands/RenewDelegationTokenCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var RenewDelegationTokenCommand = /** @class */ (function (_super) {
- __extends(RenewDelegationTokenCommand, _super);
- function RenewDelegationTokenCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- RenewDelegationTokenCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TRenewDelegationTokenReq(data);
- return this.executeCommand(request, this.client.RenewDelegationToken);
- };
- return RenewDelegationTokenCommand;
-}(BaseCommand_1.default));
-exports.default = RenewDelegationTokenCommand;
-//# sourceMappingURL=RenewDelegationTokenCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/RenewDelegationTokenCommand.js.map b/dist/hive/Commands/RenewDelegationTokenCommand.js.map
deleted file mode 100644
index 07ef9395..00000000
--- a/dist/hive/Commands/RenewDelegationTokenCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"RenewDelegationTokenCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/RenewDelegationTokenCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAYxC;IAAyD,+CAAW;IAApE;;IAMA,CAAC;IALG,6CAAO,GAAP,UAAQ,IAAiC;QACrC,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAE1E,OAAO,IAAI,CAAC,cAAc,CAA+B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACxG,CAAC;IACL,kCAAC;AAAD,CAAC,AAND,CAAyD,qBAAW,GAMnE"}
\ No newline at end of file
diff --git a/dist/hive/Commands/SetClientInfoCommand.d.ts b/dist/hive/Commands/SetClientInfoCommand.d.ts
deleted file mode 100644
index 8cd747ae..00000000
--- a/dist/hive/Commands/SetClientInfoCommand.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import BaseCommand from "./BaseCommand";
-import { SessionHandle, Status } from "../Types";
-export declare type SetClientInfoRequest = {
- sessionHandle: SessionHandle;
- configuration?: Map;
-};
-export declare type SetClientInfoResponse = {
- status: Status;
-};
-export default class SetClientInfoCommand extends BaseCommand {
- execute(data: SetClientInfoRequest): Promise;
-}
diff --git a/dist/hive/Commands/SetClientInfoCommand.js b/dist/hive/Commands/SetClientInfoCommand.js
deleted file mode 100644
index 6b99689b..00000000
--- a/dist/hive/Commands/SetClientInfoCommand.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var BaseCommand_1 = __importDefault(require("./BaseCommand"));
-var SetClientInfoCommand = /** @class */ (function (_super) {
- __extends(SetClientInfoCommand, _super);
- function SetClientInfoCommand() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- SetClientInfoCommand.prototype.execute = function (data) {
- var request = new this.TCLIService_types.TSetClientInfoReq(data);
- return this.executeCommand(request, this.client.SetClientInfo);
- };
- return SetClientInfoCommand;
-}(BaseCommand_1.default));
-exports.default = SetClientInfoCommand;
-//# sourceMappingURL=SetClientInfoCommand.js.map
\ No newline at end of file
diff --git a/dist/hive/Commands/SetClientInfoCommand.js.map b/dist/hive/Commands/SetClientInfoCommand.js.map
deleted file mode 100644
index 77a7d60f..00000000
--- a/dist/hive/Commands/SetClientInfoCommand.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"SetClientInfoCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/SetClientInfoCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAYxC;IAAkD,wCAAW;IAA7D;;IAMA,CAAC;IALG,sCAAO,GAAP,UAAQ,IAA0B;QAC9B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAEnE,OAAO,IAAI,CAAC,cAAc,CAAwB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC1F,CAAC;IACL,2BAAC;AAAD,CAAC,AAND,CAAkD,qBAAW,GAM5D"}
\ No newline at end of file
diff --git a/dist/hive/HiveDriver.d.ts b/dist/hive/HiveDriver.d.ts
deleted file mode 100644
index f43bd7c9..00000000
--- a/dist/hive/HiveDriver.d.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-import { ThriftClient, TCLIServiceTypes } from './Types/';
-import { OpenSessionRequest, OpenSessionResponse } from "./Commands/OpenSessionCommand";
-import { CloseSessionRequest, CloseSessionResponse } from "./Commands/CloseSessionCommand";
-import { ExecuteStatementResponse, ExecuteStatementRequest } from "./Commands/ExecuteStatementCommand";
-import { GetResultSetMetadataRequest, GetResultSetMetadataResponse } from "./Commands/GetResultSetMetadataCommand";
-import { FetchResultsRequest, FetchResultsResponse } from "./Commands/FetchResultsCommand";
-import { GetInfoRequest, GetInfoResponse } from "./Commands/GetInfoCommand";
-import { GetTypeInfoRequest, GetTypeInfoResponse } from "./Commands/GetTypeInfoCommand";
-import { GetCatalogsRequest, GetCatalogsResponse } from "./Commands/GetCatalogsCommand";
-import { GetSchemasRequest, GetSchemasResponse } from "./Commands/GetSchemasCommand";
-import { GetTablesRequest, GetTablesResponse } from "./Commands/GetTablesCommand";
-import { GetTableTypesRequest, GetTableTypesResponse } from "./Commands/GetTableTypesCommand";
-import { GetColumnsRequest, GetColumnsResponse } from "./Commands/GetColumnsCommand";
-import { GetFunctionsRequest, GetFunctionsResponse } from "./Commands/GetFunctionsCommand";
-import { GetPrimaryKeysRequest, GetPrimaryKeysResponse } from "./Commands/GetPrimaryKeysCommand";
-import { GetCrossReferenceRequest, GetCrossReferenceResponse } from "./Commands/GetCrossReferenceCommand";
-import { GetOperationStatusRequest, GetOperationStatusResponse } from "./Commands/GetOperationStatusCommand";
-import { CancelOperationRequest, CancelOperationResponse } from "./Commands/CancelOperationCommand";
-import { CloseOperationRequest, CloseOperationResponse } from "./Commands/CloseOperationCommand";
-import { GetDelegationTokenRequest, GetDelegationTokenResponse } from "./Commands/GetDelegationTokenCommand";
-import { CancelDelegationTokenRequest, CancelDelegationTokenResponse } from "./Commands/CancelDelegationTokenCommand";
-import { RenewDelegationTokenRequest, RenewDelegationTokenResponse } from "./Commands/RenewDelegationTokenCommand";
-import { GetQueryIdRequest, GetQueryIdResponse } from "./Commands/GetQueryIdCommand";
-import { SetClientInfoRequest, SetClientInfoResponse } from "./Commands/SetClientInfoCommand";
-export default class HiveDriver {
- private TCLIService_types;
- private client;
- constructor(TCLIService_types: TCLIServiceTypes, client: ThriftClient);
- openSession(request: OpenSessionRequest): Promise;
- closeSession(request: CloseSessionRequest): Promise;
- executeStatement(request: ExecuteStatementRequest): Promise;
- getResultSetMetadata(request: GetResultSetMetadataRequest): Promise;
- fetchResults(request: FetchResultsRequest): Promise;
- getInfo(request: GetInfoRequest): Promise;
- getTypeInfo(request: GetTypeInfoRequest): Promise;
- getCatalogs(request: GetCatalogsRequest): Promise;
- getSchemas(request: GetSchemasRequest): Promise;
- getTables(request: GetTablesRequest): Promise;
- getTableTypes(request: GetTableTypesRequest): Promise;
- getColumns(request: GetColumnsRequest): Promise;
- getFunctions(request: GetFunctionsRequest): Promise;
- getPrimaryKeys(request: GetPrimaryKeysRequest): Promise;
- getCrossReference(request: GetCrossReferenceRequest): Promise;
- getOperationStatus(request: GetOperationStatusRequest): Promise;
- cancelOperation(request: CancelOperationRequest): Promise;
- closeOperation(request: CloseOperationRequest): Promise;
- getDelegationToken(request: GetDelegationTokenRequest): Promise;
- cancelDelegationToken(request: CancelDelegationTokenRequest): Promise;
- renewDelegationToken(request: RenewDelegationTokenRequest): Promise;
- getQueryId(request: GetQueryIdRequest): Promise;
- setClientInfo(request: SetClientInfoRequest): Promise;
-}
diff --git a/dist/hive/HiveDriver.js b/dist/hive/HiveDriver.js
deleted file mode 100644
index a2d5574a..00000000
--- a/dist/hive/HiveDriver.js
+++ /dev/null
@@ -1,129 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-var OpenSessionCommand_1 = __importDefault(require("./Commands/OpenSessionCommand"));
-var CloseSessionCommand_1 = __importDefault(require("./Commands/CloseSessionCommand"));
-var ExecuteStatementCommand_1 = __importDefault(require("./Commands/ExecuteStatementCommand"));
-var GetResultSetMetadataCommand_1 = __importDefault(require("./Commands/GetResultSetMetadataCommand"));
-var FetchResultsCommand_1 = __importDefault(require("./Commands/FetchResultsCommand"));
-var GetInfoCommand_1 = __importDefault(require("./Commands/GetInfoCommand"));
-var GetTypeInfoCommand_1 = __importDefault(require("./Commands/GetTypeInfoCommand"));
-var GetCatalogsCommand_1 = __importDefault(require("./Commands/GetCatalogsCommand"));
-var GetSchemasCommand_1 = __importDefault(require("./Commands/GetSchemasCommand"));
-var GetTablesCommand_1 = __importDefault(require("./Commands/GetTablesCommand"));
-var GetTableTypesCommand_1 = __importDefault(require("./Commands/GetTableTypesCommand"));
-var GetColumnsCommand_1 = __importDefault(require("./Commands/GetColumnsCommand"));
-var GetFunctionsCommand_1 = __importDefault(require("./Commands/GetFunctionsCommand"));
-var GetPrimaryKeysCommand_1 = __importDefault(require("./Commands/GetPrimaryKeysCommand"));
-var GetCrossReferenceCommand_1 = __importDefault(require("./Commands/GetCrossReferenceCommand"));
-var GetOperationStatusCommand_1 = __importDefault(require("./Commands/GetOperationStatusCommand"));
-var CancelOperationCommand_1 = __importDefault(require("./Commands/CancelOperationCommand"));
-var CloseOperationCommand_1 = __importDefault(require("./Commands/CloseOperationCommand"));
-var GetDelegationTokenCommand_1 = __importDefault(require("./Commands/GetDelegationTokenCommand"));
-var CancelDelegationTokenCommand_1 = __importDefault(require("./Commands/CancelDelegationTokenCommand"));
-var RenewDelegationTokenCommand_1 = __importDefault(require("./Commands/RenewDelegationTokenCommand"));
-var GetQueryIdCommand_1 = __importDefault(require("./Commands/GetQueryIdCommand"));
-var SetClientInfoCommand_1 = __importDefault(require("./Commands/SetClientInfoCommand"));
-var HiveDriver = /** @class */ (function () {
- function HiveDriver(TCLIService_types, client) {
- this.TCLIService_types = TCLIService_types;
- this.client = client;
- }
- HiveDriver.prototype.openSession = function (request) {
- var action = new OpenSessionCommand_1.default(this.client, this.TCLIService_types);
- return action.execute(request);
- };
- HiveDriver.prototype.closeSession = function (request) {
- var command = new CloseSessionCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.executeStatement = function (request) {
- var command = new ExecuteStatementCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.getResultSetMetadata = function (request) {
- var command = new GetResultSetMetadataCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.fetchResults = function (request) {
- var command = new FetchResultsCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.getInfo = function (request) {
- var command = new GetInfoCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.getTypeInfo = function (request) {
- var command = new GetTypeInfoCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.getCatalogs = function (request) {
- var command = new GetCatalogsCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.getSchemas = function (request) {
- var command = new GetSchemasCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.getTables = function (request) {
- var command = new GetTablesCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.getTableTypes = function (request) {
- var command = new GetTableTypesCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.getColumns = function (request) {
- var command = new GetColumnsCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.getFunctions = function (request) {
- var command = new GetFunctionsCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.getPrimaryKeys = function (request) {
- var command = new GetPrimaryKeysCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.getCrossReference = function (request) {
- var command = new GetCrossReferenceCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.getOperationStatus = function (request) {
- var command = new GetOperationStatusCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.cancelOperation = function (request) {
- var command = new CancelOperationCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.closeOperation = function (request) {
- var command = new CloseOperationCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.getDelegationToken = function (request) {
- var command = new GetDelegationTokenCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.cancelDelegationToken = function (request) {
- var command = new CancelDelegationTokenCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.renewDelegationToken = function (request) {
- var command = new RenewDelegationTokenCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.getQueryId = function (request) {
- var command = new GetQueryIdCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- HiveDriver.prototype.setClientInfo = function (request) {
- var command = new SetClientInfoCommand_1.default(this.client, this.TCLIService_types);
- return command.execute(request);
- };
- return HiveDriver;
-}());
-exports.default = HiveDriver;
-//# sourceMappingURL=HiveDriver.js.map
\ No newline at end of file
diff --git a/dist/hive/HiveDriver.js.map b/dist/hive/HiveDriver.js.map
deleted file mode 100644
index 138e0406..00000000
--- a/dist/hive/HiveDriver.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"HiveDriver.js","sourceRoot":"","sources":["../../lib/hive/HiveDriver.ts"],"names":[],"mappings":";;;;;AACA,qFAA4G;AAC5G,uFAAgH;AAChH,+FAAgI;AAChI,uGAAgJ;AAChJ,uFAAgH;AAChH,6EAA4F;AAC5F,qFAA4G;AAC5G,qFAA4G;AAC5G,mFAAwG;AACxG,iFAAoG;AACpG,yFAAoH;AACpH,mFAAwG;AACxG,uFAAgH;AAChH,2FAAwH;AACxH,iGAAoI;AACpI,mGAAwI;AACxI,6FAA4H;AAC5H,2FAAwH;AACxH,mGAAwI;AACxI,yGAAoJ;AACpJ,uGAAgJ;AAChJ,mFAAwG;AACxG,yFAAoH;AAEpH;IAII,oBAAY,iBAAmC,EAAE,MAAoB;QACjE,IAAI,CAAC,iBAAiB,GAAG,iBAAiB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AG,IAAI,mCAAyB,CACzC,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,iBAAiB,CACzB,CAAC;QAEF,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IAED,0CAAqB,GAArB,UAAsB,OAAqC;QACvD,IAAM,OAAO,GAAG,IAAI,sCAA4B,CAC5C,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,iBAAiB,CACzB,CAAC;QAEF,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IAED,yCAAoB,GAApB,UAAqB,OAAoC;QACrD,IAAM,OAAO,GAAG,IAAI,qCAA2B,CAC3C,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,iBAAiB,CACzB,CAAC;QAEF,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IAED,+BAAU,GAAV,UAAW,OAA0B;QACjC,IAAM,OAAO,GAAG,IAAI,2BAAiB,CACjC,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,iBAAiB,CACzB,CAAC;QAEF,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IAED,kCAAa,GAAb,UAAc,OAA6B;QACvC,IAAM,OAAO,GAAG,IAAI,8BAAoB,CACpC,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,iBAAiB,CACzB,CAAC;QAEF,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACL,iBAAC;AAAD,CAAC,AAvND,IAuNC"}
\ No newline at end of file
diff --git a/dist/hive/Types/index.d.ts b/dist/hive/Types/index.d.ts
deleted file mode 100644
index b6137f24..00000000
--- a/dist/hive/Types/index.d.ts
+++ /dev/null
@@ -1,229 +0,0 @@
-///
-export declare type ThriftClient = {
- OpenSession: Function;
- CloseSession: Function;
- GetResultSetMetadata: Function;
- ExecuteStatement: Function;
- FetchResults: Function;
- GetInfo: Function;
- GetTypeInfo: Function;
- GetCatalogs: Function;
- GetSchemas: Function;
- GetTables: Function;
- GetTableTypes: Function;
- GetColumns: Function;
- GetFunctions: Function;
- GetPrimaryKeys: Function;
- GetCrossReference: Function;
- GetOperationStatus: Function;
- CancelOperation: Function;
- CloseOperation: Function;
- GetDelegationToken: Function;
- CancelDelegationToken: Function;
- RenewDelegationToken: Function;
- GetQueryId: Function;
- SetClientInfo: Function;
-};
-export declare type TCLIServiceTypes = {
- TOpenSessionReq: any;
- TCloseSessionReq: any;
- TProtocolVersion: any;
- TExecuteStatementReq: any;
- TFetchResultsReq: any;
- TGetInfoReq: any;
- TFetchOrientation: any;
- TGetResultSetMetadataReq: any;
- TGetTypeInfoReq: any;
- TGetCatalogsReq: any;
- TGetSchemasReq: any;
- TGetTablesReq: any;
- TGetTableTypesReq: any;
- TGetColumnsReq: any;
- TGetFunctionsReq: any;
- TGetPrimaryKeysReq: any;
- TGetCrossReferenceReq: any;
- TGetOperationStatusReq: any;
- TCancelOperationReq: any;
- TCloseOperationReq: any;
- TGetDelegationTokenReq: any;
- TCancelDelegationTokenReq: any;
- TRenewDelegationTokenReq: any;
- TGetQueryIdReq: any;
- TSetClientInfoReq: any;
- TTypeId: any;
- TStatusCode: any;
- TOperationState: any;
-};
-export declare type ThriftSession = {
- sessionHandle: any;
-};
-export declare type Status = {
- statusCode: number;
- infoMessages?: Array;
- sqlState?: string;
- errorCode?: number;
- errorMessage?: string;
-};
-export declare type ThriftBuffer = Buffer;
-declare type HandleIdentifier = {
- guid: ThriftBuffer;
- secret: ThriftBuffer;
-};
-export declare type SessionHandle = {
- sessionId: HandleIdentifier;
-};
-export declare type OperationHandle = {
- operationId: HandleIdentifier;
- operationType: number;
- hasResultSet: boolean;
- modifiedRowCount?: number;
-};
-declare type TypeQualifiers = {
- qualifiers: Map;
-};
-export declare type PrimitiveTypeEntry = {
- type: number;
- typeQualifiers?: TypeQualifiers;
-};
-declare type TypeEntryPtr = number;
-export declare type ArrayTypeEntry = {
- objectTypePtr: TypeEntryPtr;
-};
-export declare type MapTypeEntry = {
- keyTypePtr: TypeEntryPtr;
- valueTypePtr: TypeEntryPtr;
-};
-export declare type StructTypeEntry = {
- nameToTypePtr: Map;
-};
-export declare type UnionTypeEntry = {
- nameToTypePtr: Map;
-};
-export declare type UserDefinedTypeEntry = {
- typeClassName: string;
-};
-export declare type TypeEntry = {
- primitiveEntry: PrimitiveTypeEntry;
- arrayEntry: ArrayTypeEntry;
- mapEntry: MapTypeEntry;
- structEntry: StructTypeEntry;
- unionEntry: UnionTypeEntry;
- userDefinedTypeEntry: UserDefinedTypeEntry;
-};
-export declare type TypeDesc = {
- types: Array;
-};
-export declare type ColumnDesc = {
- columnName: string;
- typeDesc: TypeDesc;
- position: number;
- comment?: string;
-};
-export declare type TableSchema = {
- columns: Array;
-};
-declare type ColumnValue = BoolValue | ByteValue | TI16Value | TI32Value | TI64Value | TDoubleValue | TStringValue;
-declare type BoolValue = {
- value: boolean;
-};
-declare type ByteValue = {
- value: ThriftBuffer;
-};
-declare type TI16Value = {
- value: number;
-};
-declare type TI32Value = {
- value: number;
-};
-declare type TI64Value = {
- value: ThriftBuffer;
-};
-declare type TDoubleValue = {
- value: number;
-};
-declare type TStringValue = {
- value: string;
-};
-declare type Row = {
- colVals: Array;
-};
-export declare type TBoolColumn = {
- values: Array;
- nulls: ThriftBuffer;
-};
-export declare type TByteColumn = {
- values: Array;
- nulls: ThriftBuffer;
-};
-export declare type TI16Column = {
- values: Array;
- nulls: ThriftBuffer;
-};
-export declare type TI32Column = {
- values: Array;
- nulls: ThriftBuffer;
-};
-export declare type TI64Column = {
- values: Array;
- nulls: ThriftBuffer;
-};
-export declare type TDoubleColumn = {
- values: Array;
- nulls: ThriftBuffer;
-};
-export declare type TStringColumn = {
- values: Array;
- nulls: ThriftBuffer;
-};
-export declare type TBinaryColumn = {
- values: Array;
- nulls: ThriftBuffer;
-};
-export declare enum ColumnCode {
- boolVal = "boolVal",
- byteVal = "byteVal",
- i16Val = "i16Val",
- i32Val = "i32Val",
- i64Val = "i64Val",
- doubleVal = "doubleVal",
- stringVal = "stringVal",
- binaryVal = "binaryVal"
-}
-export declare type ColumnType = TBoolColumn | TByteColumn | TI16Column | TI32Column | TI64Column | TDoubleColumn | TStringColumn | TBinaryColumn;
-export declare type Column = {
- [ColumnCode.boolVal]: TBoolColumn;
- [ColumnCode.byteVal]: TByteColumn;
- [ColumnCode.i16Val]: TI16Column;
- [ColumnCode.i32Val]: TI32Column;
- [ColumnCode.i64Val]: TI64Column;
- [ColumnCode.doubleVal]: TDoubleColumn;
- [ColumnCode.stringVal]: TStringColumn;
- [ColumnCode.binaryVal]: TBinaryColumn;
-};
-export declare type RowSet = {
- startRowOffset: ThriftBuffer;
- rows: Array;
- columns?: Array;
- binaryColumns?: ThriftBuffer;
- columnCount?: number;
-};
-export declare type GetInfoValue = {
- stringValue: string;
- smallIntValue: number;
- integerBitmask: number;
- integerFlag: number;
- binaryValue: number;
- lenValue: ThriftBuffer;
-};
-export declare type ProgressUpdateResponse = {
- headerNames: Array;
- rows: Array>;
- progressedPercentage: number;
- status: number;
- footerSummary: string;
- startTime: ThriftBuffer;
-};
-export {};
diff --git a/dist/hive/Types/index.js b/dist/hive/Types/index.js
deleted file mode 100644
index c3b22266..00000000
--- a/dist/hive/Types/index.js
+++ /dev/null
@@ -1,16 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.ColumnCode = void 0;
-var ColumnCode;
-(function (ColumnCode) {
- ColumnCode["boolVal"] = "boolVal";
- ColumnCode["byteVal"] = "byteVal";
- ColumnCode["i16Val"] = "i16Val";
- ColumnCode["i32Val"] = "i32Val";
- ColumnCode["i64Val"] = "i64Val";
- ColumnCode["doubleVal"] = "doubleVal";
- ColumnCode["stringVal"] = "stringVal";
- ColumnCode["binaryVal"] = "binaryVal";
-})(ColumnCode = exports.ColumnCode || (exports.ColumnCode = {}));
-;
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/dist/hive/Types/index.js.map b/dist/hive/Types/index.js.map
deleted file mode 100644
index 139afd50..00000000
--- a/dist/hive/Types/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/hive/Types/index.ts"],"names":[],"mappings":";;;AAiMA,IAAY,UASX;AATD,WAAY,UAAU;IAClB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;AACzB,CAAC,EATW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QASrB;AAAA,CAAC"}
\ No newline at end of file
diff --git a/dist/index.d.ts b/dist/index.d.ts
deleted file mode 100644
index 2ff7297c..00000000
--- a/dist/index.d.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import DBSQLClient from "./DBSQLClient";
-import _HiveClient from "./HiveClient";
-import _HiveDriver from "./hive/HiveDriver";
-import _HiveUtils from "./utils/HiveUtils";
-import NoSaslAuthentication from "./connection/auth/NoSaslAuthentication";
-import PlainHttpAuthentication from "./connection/auth/PlainHttpAuthentication";
-import HttpConnection from "./connection/connections/HttpConnection";
-export declare const auth: {
- NoSaslAuthentication: typeof NoSaslAuthentication;
- PlainHttpAuthentication: typeof PlainHttpAuthentication;
-};
-export declare const connections: {
- HttpConnection: typeof HttpConnection;
-};
-export declare const thrift: {
- TCLIService: any;
- TCLIService_types: any;
-};
-export declare class HiveClient extends _HiveClient {
-}
-export declare class HiveDriver extends _HiveDriver {
-}
-export declare class HiveUtils extends _HiveUtils {
-}
-export { DBSQLClient, };
diff --git a/dist/index.js b/dist/index.js
deleted file mode 100644
index 531a1605..00000000
--- a/dist/index.js
+++ /dev/null
@@ -1,67 +0,0 @@
-"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.DBSQLClient = exports.HiveUtils = exports.HiveDriver = exports.HiveClient = exports.thrift = exports.connections = exports.auth = void 0;
-var TCLIService = require('../thrift/gen-nodejs/TCLIService');
-var TCLIService_types = require('../thrift/gen-nodejs/TCLIService_types');
-var DBSQLClient_1 = __importDefault(require("./DBSQLClient"));
-exports.DBSQLClient = DBSQLClient_1.default;
-var HiveClient_1 = __importDefault(require("./HiveClient"));
-var HiveDriver_1 = __importDefault(require("./hive/HiveDriver"));
-var HiveUtils_1 = __importDefault(require("./utils/HiveUtils"));
-var NoSaslAuthentication_1 = __importDefault(require("./connection/auth/NoSaslAuthentication"));
-var PlainHttpAuthentication_1 = __importDefault(require("./connection/auth/PlainHttpAuthentication"));
-var HttpConnection_1 = __importDefault(require("./connection/connections/HttpConnection"));
-exports.auth = {
- NoSaslAuthentication: NoSaslAuthentication_1.default,
- PlainHttpAuthentication: PlainHttpAuthentication_1.default,
-};
-exports.connections = {
- HttpConnection: HttpConnection_1.default,
-};
-exports.thrift = {
- TCLIService: TCLIService,
- TCLIService_types: TCLIService_types
-};
-var HiveClient = /** @class */ (function (_super) {
- __extends(HiveClient, _super);
- function HiveClient() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- return HiveClient;
-}(HiveClient_1.default));
-exports.HiveClient = HiveClient;
-var HiveDriver = /** @class */ (function (_super) {
- __extends(HiveDriver, _super);
- function HiveDriver() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- return HiveDriver;
-}(HiveDriver_1.default));
-exports.HiveDriver = HiveDriver;
-var HiveUtils = /** @class */ (function (_super) {
- __extends(HiveUtils, _super);
- function HiveUtils() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- return HiveUtils;
-}(HiveUtils_1.default));
-exports.HiveUtils = HiveUtils;
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/dist/index.js.map b/dist/index.js.map
deleted file mode 100644
index 69f3bdda..00000000
--- a/dist/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,WAAW,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC;AAChE,IAAM,iBAAiB,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAAC;AAC5E,8DAAwC;AA2BtC,sBA3BK,qBAAW,CA2BL;AA1Bb,4DAAuC;AACvC,iEAA4C;AAC5C,gEAA2C;AAC3C,gGAA0E;AAC1E,sGAAgF;AAChF,2FAAqE;AAExD,QAAA,IAAI,GAAG;IAChB,oBAAoB,gCAAA;IACpB,uBAAuB,mCAAA;CAC1B,CAAC;AAEW,QAAA,WAAW,GAAG;IACvB,cAAc,0BAAA;CACjB,CAAC;AAEW,QAAA,MAAM,GAAG;IAClB,WAAW,aAAA;IACX,iBAAiB,mBAAA;CACpB,CAAC;AAEF;IAAgC,8BAAW;IAA3C;;IAA6C,CAAC;IAAD,iBAAC;AAAD,CAAC,AAA9C,CAAgC,oBAAW,GAAG;AAAjC,gCAAU;AACvB;IAAgC,8BAAW;IAA3C;;IAA6C,CAAC;IAAD,iBAAC;AAAD,CAAC,AAA9C,CAAgC,oBAAW,GAAG;AAAjC,gCAAU;AACvB;IAA+B,6BAAU;IAAzC;;IAA4C,CAAC;IAAD,gBAAC;AAAD,CAAC,AAA7C,CAA+B,mBAAU,GAAI;AAAhC,8BAAS"}
\ No newline at end of file
diff --git a/dist/result/IOperationResult.d.ts b/dist/result/IOperationResult.d.ts
deleted file mode 100644
index c9802173..00000000
--- a/dist/result/IOperationResult.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import IOperation from "../contracts/IOperation";
-export default interface IOperationResult {
- setOperation(operation: IOperation): void;
- getValue(): any;
-}
diff --git a/dist/result/IOperationResult.js b/dist/result/IOperationResult.js
deleted file mode 100644
index 1001c22b..00000000
--- a/dist/result/IOperationResult.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=IOperationResult.js.map
\ No newline at end of file
diff --git a/dist/result/IOperationResult.js.map b/dist/result/IOperationResult.js.map
deleted file mode 100644
index 09c7ebd8..00000000
--- a/dist/result/IOperationResult.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"IOperationResult.js","sourceRoot":"","sources":["../../lib/result/IOperationResult.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/dist/result/JsonResult.d.ts b/dist/result/JsonResult.d.ts
deleted file mode 100644
index d8f38d06..00000000
--- a/dist/result/JsonResult.d.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { TCLIServiceTypes } from "../hive/Types";
-import IOperationResult from "./IOperationResult";
-import IOperation from "../contracts/IOperation";
-export default class JsonResult implements IOperationResult {
- private TCLIService_types;
- private schema;
- private data;
- constructor(TCLIService_types: TCLIServiceTypes);
- setOperation(operation: IOperation): void;
- getValue(): Array