ResultItemAPI.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. 2018, 2020
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @interface ResultItemAPI
  10. * @hideconstructor
  11. * @classdesc API class that is used to work with a result data item.
  12. * @example queryResult.getResultItemList()[index]
  13. */
  14. define([], function () {
  15. var ResultItemAPI = function () {
  16. function ResultItemAPI() {
  17. _classCallCheck(this, ResultItemAPI);
  18. }
  19. /**
  20. * @function ResultItemAPI#getDataItemList
  21. * @description Gets column information in the result data item.
  22. * @public
  23. *
  24. * @return {DataItemAPI[]} Array of DataItemAPI {@link DataItemAPI}
  25. */
  26. ResultItemAPI.prototype.getDataItemList = function getDataItemList() {};
  27. /**
  28. * @function ResultItemAPI#getId
  29. * @description Gets the unique ID of the query result data item. It corresponds to the data item unique ID in the query spec.
  30. * @private
  31. *
  32. * @return {String} Data item unique ID
  33. */
  34. ResultItemAPI.prototype.getId = function getId() {};
  35. /**
  36. * @function ResultItemAPI#getRowCount
  37. * @description Gets the row count of the corresponding column of the result data item.
  38. * @public
  39. *
  40. * @return {Number} Number of rows in the corresponding column
  41. */
  42. ResultItemAPI.prototype.getRowCount = function getRowCount() {};
  43. /**
  44. * @function ResultItemAPI#getValue
  45. * @description Gets the value object at the specified rowIndex.
  46. * @public
  47. *
  48. * @param {Number} rowIndex Index to access the items list.
  49. * @return {ResultDataValue[]} Value of object array {@link ResultDataValue}
  50. * @example
  51. * [{
  52. * value: 'dataset_csv.Product_line->[Camping Equipment]',
  53. * label: 'Camping Equipment'
  54. * }]
  55. */
  56. ResultItemAPI.prototype.getValue = function getValue() {};
  57. return ResultItemAPI;
  58. }();
  59. return ResultItemAPI;
  60. });
  61. //# sourceMappingURL=ResultItemAPI.js.map