QueryResultsAPI.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. 'use strict';
  2. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3. /**
  4. * Licensed Materials - Property of IBM
  5. * IBM Business Analytics (C) Copyright IBM Corp. 2019, 2020
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @interface QueryResultsAPI
  10. * @hideconstructor
  11. * @classdesc API class that is used to access query results.
  12. * @example dataQueryExecution.getCurrentQueryResults()
  13. */
  14. define([], function () {
  15. var QueryResultsAPI = function () {
  16. function QueryResultsAPI() {
  17. _classCallCheck(this, QueryResultsAPI);
  18. }
  19. /**
  20. * @function QueryResultsAPI#getResult
  21. * @description Gets a single {@link QueryResultAPI}.
  22. * @public
  23. *
  24. * @param {String} [id = 'data'] query id
  25. * @return {QueryResultAPI} QueryResultAPI object {@link QueryResultAPI}
  26. */
  27. QueryResultsAPI.prototype.getResult = function getResult() {};
  28. /**
  29. * @function QueryResultsAPI#getQueryResultIdList
  30. * @description Gets the IDs of query results.
  31. * @public
  32. *
  33. * @return {String[]} Array of query result IDs.
  34. */
  35. QueryResultsAPI.prototype.getQueryResultIdList = function getQueryResultIdList() {};
  36. /**
  37. * @function QueryResultsAPI#getCacheValidateTag
  38. * @description Gets the query tag that uniquely identifies the query result data. It is built from query specs and the last-modified timestamp of the data source.
  39. * @private
  40. *
  41. * @return {Number} Returns the tag.
  42. */
  43. QueryResultsAPI.prototype.getCacheValidateTag = function getCacheValidateTag() {};
  44. /**
  45. * Gets the list of warnings generated while executing the query.
  46. * @return {QueryWarning[]}
  47. * @private
  48. */
  49. QueryResultsAPI.prototype.getWarningList = function getWarningList() {};
  50. return QueryResultsAPI;
  51. }();
  52. /**
  53. * @description Enum for query result types. Internal second argument of getResult.
  54. * @readonly
  55. * @enum {String}
  56. * @constant
  57. * @private
  58. * @memberOf QueryResultsAPI
  59. */
  60. QueryResultsAPI.QUERY_RESULT_TYPE = {
  61. /** The main query type */
  62. MAIN: 'main',
  63. /** The minmax query type */
  64. MINMAX: 'minmax'
  65. };
  66. return QueryResultsAPI;
  67. });
  68. //# sourceMappingURL=QueryResultsAPI.js.map