IndexSwitcherInterface.php 618 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\CatalogSearch\Model\Indexer;
  7. /**
  8. * Provides a functionality to replace main index with its temporary representation.
  9. *
  10. * @api
  11. * @since 100.2.0
  12. */
  13. interface IndexSwitcherInterface
  14. {
  15. /**
  16. * Switch current index with temporary index
  17. *
  18. * It will drop current index table and rename temporary index table to the current index table.
  19. *
  20. * @param array $dimensions
  21. * @return void
  22. * @since 100.2.0
  23. */
  24. public function switchIndex(array $dimensions);
  25. }