QueryDataItemSetAPI.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. * @typedef {Object} CalculationInfo
  10. * @property {String} operator - operator of the calculation
  11. * @property {String[]} operands - list of operands of the calculation
  12. */
  13. /**
  14. * @class QueryDataItemSetAPI
  15. * @hideconstructor
  16. * @classdesc API class for sets of Data Items - loosely, an abstraction of an edge or slot.
  17. * It holds Data Items which are unioned together, and Data Item Sets, which are nested.
  18. */
  19. define([], function () {
  20. var QueryDataItemSetAPI = function () {
  21. function QueryDataItemSetAPI() {
  22. _classCallCheck(this, QueryDataItemSetAPI);
  23. }
  24. /**
  25. * Add a data item to this set
  26. * @param {DataItemAPI} dataItem
  27. */
  28. QueryDataItemSetAPI.prototype.addDataItem = function addDataItem() {};
  29. /**
  30. * Add an array of data items to this set
  31. * @param {DataItemAPI[]} dataItems
  32. */
  33. QueryDataItemSetAPI.prototype.addDataItemList = function addDataItemList() {};
  34. /**
  35. * Replace the existing dataItems with the new one.
  36. * @param {DataItemAPI[]} dataItems An array of {@DataItemAPI} to replace the existing one.
  37. */
  38. QueryDataItemSetAPI.prototype.setDataItemList = function setDataItemList() {};
  39. /**
  40. * Get all data items in this set
  41. * @return {DataItemAPI[]}
  42. */
  43. QueryDataItemSetAPI.prototype.getDataItemList = function getDataItemList() {};
  44. /**
  45. * @param {DataItemAPI[]} dataItems An array of one or more data items to initialize the QueryDataItemSetAPI with
  46. * @return {QueryDataItemSetAPI}
  47. */
  48. QueryDataItemSetAPI.prototype.createDataItemSet = function createDataItemSet() {};
  49. /**
  50. * Get all data item sets in this set
  51. * @return {QueryDataItemSetAPI[]}
  52. */
  53. QueryDataItemSetAPI.prototype.getDataItemSetList = function getDataItemSetList() {};
  54. /**
  55. * Get all data items in this set and its descendants
  56. * @return {QueryDataItemAPI[]}
  57. */
  58. QueryDataItemSetAPI.prototype.getAllDataItemsList = function getAllDataItemsList() {};
  59. /**
  60. * Return true if this dataItemSet contains facts.
  61. * @return {Boolean}
  62. */
  63. QueryDataItemSetAPI.prototype.isMeasureItemSet = function isMeasureItemSet() {};
  64. /**
  65. * Return true if this dataItemSet is nested (includes a non-empty dataItemSets member)
  66. * @return {Boolean}
  67. */
  68. QueryDataItemSetAPI.prototype.isNestedItemSet = function isNestedItemSet() {};
  69. /**
  70. * @return {String} - the constant summary data item name prefix (summary:)
  71. */
  72. QueryDataItemSetAPI.prototype.getSummaryItemPrefix = function getSummaryItemPrefix() {};
  73. /**
  74. * @return {Boolean} - true if this id represents a summary dataItem (starts with 'summary:')
  75. */
  76. QueryDataItemSetAPI.prototype.isSummaryItemId = function isSummaryItemId() {};
  77. /**
  78. * @function QueryDataItemSetAPI#addCalculation
  79. * Add calculation to a measure item set
  80. * @param {String} operator operator of the calculation
  81. * @param {String[]} dataItemIds dataItem operands of the calculation
  82. */
  83. QueryDataItemSetAPI.prototype.addCalculation = function addCalculation() {};
  84. /**
  85. * @function QueryDataItemSetAPI#getCalculationList
  86. * Get list of calculations of a measure item set
  87. * @param {String} [dataItemId] dataItem operand of the calculation. Returns all calculations if omitted.
  88. * @return {CalculationInfo[]} list of calculations
  89. */
  90. QueryDataItemSetAPI.prototype.getCalculationList = function getCalculationList() {};
  91. return QueryDataItemSetAPI;
  92. }();
  93. return QueryDataItemSetAPI;
  94. });
  95. //# sourceMappingURL=QueryDataItemSetAPI.js.map