DataProviderInterface.php 916 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Search\Adapter\Mysql\Aggregation;
  7. use Magento\Framework\DB\Ddl\Table;
  8. use Magento\Framework\DB\Select;
  9. use Magento\Framework\Search\Request\BucketInterface;
  10. use Magento\Framework\Search\Request\Dimension;
  11. /**
  12. * MySQL search data provider.
  13. *
  14. * @deprecated 102.0.0
  15. * @see \Magento\ElasticSearch
  16. */
  17. interface DataProviderInterface
  18. {
  19. /**
  20. * @param BucketInterface $bucket
  21. * @param Dimension[] $dimensions
  22. * @param Table $entityIdsTable
  23. * @return Select
  24. */
  25. public function getDataSet(
  26. BucketInterface $bucket,
  27. array $dimensions,
  28. Table $entityIdsTable
  29. );
  30. /**
  31. * Executes query and return raw response
  32. *
  33. * @param Select $select
  34. * @return array
  35. */
  36. public function execute(Select $select);
  37. }