Interface.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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-2008 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. */
  21. /**
  22. * @category Zend
  23. * @package Zend_Search_Lucene
  24. * @subpackage Index
  25. * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
  26. * @license http://framework.zend.com/license/new-bsd New BSD License
  27. */
  28. interface Zend_Search_Lucene_Index_TermsStream_Interface
  29. {
  30. /**
  31. * Reset terms stream.
  32. */
  33. public function resetTermsStream();
  34. /**
  35. * Skip terms stream up to specified term preffix.
  36. *
  37. * Prefix contains fully specified field info and portion of searched term
  38. *
  39. * @param Zend_Search_Lucene_Index_Term $prefix
  40. */
  41. public function skipTo(Zend_Search_Lucene_Index_Term $prefix);
  42. /**
  43. * Scans terms dictionary and returns next term
  44. *
  45. * @return Zend_Search_Lucene_Index_Term|null
  46. */
  47. public function nextTerm();
  48. /**
  49. * Returns term in current position
  50. *
  51. * @return Zend_Search_Lucene_Index_Term|null
  52. */
  53. public function currentTerm();
  54. /**
  55. * Close terms stream
  56. *
  57. * Should be used for resources clean up if stream is not read up to the end
  58. */
  59. public function closeTermsStream();
  60. }