QueryService2API.js 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. 'use strict';
  2. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  3. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  4. /**
  5. * Licensed Materials - Property of IBM
  6. * IBM Business Analytics (C) Copyright IBM Corp. 2019, 2020
  7. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  8. */
  9. /**
  10. * @class QueryService2API
  11. * @hideconstructor
  12. * @classdesc API class that is used to support the creation of QueryAPI2
  13. */
  14. define([], function () {
  15. var QueryService2API = function () {
  16. function QueryService2API() {
  17. _classCallCheck(this, QueryService2API);
  18. }
  19. /**
  20. * @function QueryServiceAPI#registerQueryClass
  21. * @description Register a Class which implements QueryAPI2
  22. * @public
  23. *
  24. * @param {String} queryProtocol - the protocol of query
  25. * @param {Class} QueryClass - a Class which implements QueryAPI2
  26. */
  27. QueryService2API.prototype.registerQueryClass = function registerQueryClass() {};
  28. /**
  29. * @function QueryServiceAPI#createQueryDefinition
  30. * @description Creates and returns a QueryDefinitionAPI object to construct queries
  31. * @public
  32. *
  33. * @param {String} id
  34. * @param {String} type
  35. * @return {QueryServiceAPI}
  36. */
  37. QueryService2API.prototype.createQueryDefinition = function createQueryDefinition() {};
  38. /**
  39. * @function QueryServiceAPI#createQueryV2
  40. * @description Creates and returns a QueryAPI2 object to run queries
  41. * @public
  42. *
  43. * @param {QueryDefinitionAPI} definition The QueryDefinition to use in the Query
  44. * @param {String} queryProtocol The protocol to create
  45. * @return {Query2API} Returns a Query2API object
  46. */
  47. QueryService2API.prototype.createQuery = function createQuery() {};
  48. _createClass(QueryService2API, null, [{
  49. key: 'TYPE',
  50. /**
  51. * @public
  52. * @readonly
  53. * @description Enumeration of Query type
  54. * @enum {String}
  55. * @memberof QueryServiceAPI
  56. */
  57. get: function get() {
  58. return {
  59. /** default */
  60. DEFAULT: undefined,
  61. /** min / max query */
  62. MINMAX: 'minmax',
  63. /** unaggregated detail query */
  64. DETAIL: 'detail'
  65. };
  66. }
  67. }]);
  68. return QueryService2API;
  69. }();
  70. return QueryService2API;
  71. });
  72. //# sourceMappingURL=QueryService2API.js.map