~ubuntu-branches/ubuntu/jaunty/moodle/jaunty

« back to all changes in this revision

Viewing changes to search/Zend/Search/Lucene/Storage/Directory.php

  • Committer: Bazaar Package Importer
  • Author(s): Jordan Mantha, Matt Oquist
  • Date: 2009-02-25 15:16:22 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090225151622-0ekt1liwhv2obfza
Tags: 1.9.4.dfsg-0ubuntu1
* Merge with Debian git (Closes LP: #322961, #239481, #334611):
  - use Ubuntu's smarty lib directory for linking
  - use internal yui library 
  - add update-notifier support back in

[Matt Oquist]
  * renamed prerm script
  * significantly rewrote postinst and other maintainer scripts to improve
    user experience and package maintainability
    (Closes LP: #225662, #325450, #327843, #303078, #234609)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * @category   Zend
16
16
 * @package    Zend_Search_Lucene
17
17
 * @subpackage Storage
18
 
 * @copyright  Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)
 
18
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
19
19
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20
20
 */
21
21
 
24
24
 * @category   Zend
25
25
 * @package    Zend_Search_Lucene
26
26
 * @subpackage Storage
27
 
 * @copyright  Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)
 
27
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
28
28
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
29
29
 */
30
30
abstract class Zend_Search_Lucene_Storage_Directory
61
61
     */
62
62
    abstract public function deleteFile($filename);
63
63
 
64
 
 
 
64
    /**
 
65
     * Purge file if it's cached by directory object
 
66
     * 
 
67
     * Method is used to prevent 'too many open files' error
 
68
     *
 
69
     * @param string $filename
 
70
     * @return void
 
71
     */
 
72
    abstract public function purgeFile($filename);
 
73
    
65
74
    /**
66
75
     * Returns true if a file with the given $filename exists.
67
76
     *
111
120
    /**
112
121
     * Returns a Zend_Search_Lucene_Storage_File object for a given $filename in the directory.
113
122
     *
 
123
     * If $shareHandler option is true, then file handler can be shared between File Object
 
124
     * requests. It speed-ups performance, but makes problems with file position.
 
125
     * Shared handler are good for short atomic requests.
 
126
     * Non-shared handlers are useful for stream file reading (especial for compound files).
 
127
     *
114
128
     * @param string $filename
 
129
     * @param boolean $shareHandler
115
130
     * @return Zend_Search_Lucene_Storage_File
116
131
     */
117
 
    abstract public function getFileObject($filename);
 
132
    abstract public function getFileObject($filename, $shareHandler = true);
118
133
 
119
134
}
120
135