IndexStructureInterface.php 673 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Indexer;
  7. use Magento\Framework\Search\Request\Dimension;
  8. /**
  9. * Indexer structure (schema) handler
  10. *
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface IndexStructureInterface
  15. {
  16. /**
  17. * @param string $index
  18. * @param Dimension[] $dimensions
  19. * @return void
  20. */
  21. public function delete($index, array $dimensions = []);
  22. /**
  23. * @param string $index
  24. * @param array $fields
  25. * @param Dimension[] $dimensions
  26. * @return void
  27. */
  28. public function create($index, array $fields, array $dimensions = []);
  29. }