Interface.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Search_Lucene
  17. * @subpackage Index
  18. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  21. */
  22. /**
  23. * @category Zend
  24. * @package Zend_Search_Lucene
  25. * @subpackage Index
  26. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  27. * @license http://framework.zend.com/license/new-bsd New BSD License
  28. */
  29. interface Zend_Search_Lucene_Index_TermsStream_Interface
  30. {
  31. /**
  32. * Reset terms stream.
  33. */
  34. public function resetTermsStream();
  35. /**
  36. * Skip terms stream up to the specified term preffix.
  37. *
  38. * Prefix contains fully specified field info and portion of searched term
  39. *
  40. * @param Zend_Search_Lucene_Index_Term $prefix
  41. */
  42. public function skipTo(Zend_Search_Lucene_Index_Term $prefix);
  43. /**
  44. * Scans terms dictionary and returns next term
  45. *
  46. * @return Zend_Search_Lucene_Index_Term|null
  47. */
  48. public function nextTerm();
  49. /**
  50. * Returns term in current position
  51. *
  52. * @return Zend_Search_Lucene_Index_Term|null
  53. */
  54. public function currentTerm();
  55. /**
  56. * Close terms stream
  57. *
  58. * Should be used for resources clean up if stream is not read up to the end
  59. */
  60. public function closeTermsStream();
  61. }