- protected function initIndex ($fileName) {
- // Append index file extension
- $fileName .= $this->getConfigInstance()->getConfigEntry('index_extension');
-
- // Get a file i/o pointer instance for index file
- $fileInstance = ObjectFactory::createObjectByConfiguredName('index_file_class', array($fileName));
-
- // Get iterator instance
- $iteratorInstance = ObjectFactory::createObjectByConfiguredName('file_io_iterator_class', array($fileInstance, $this));
-
- // Is the instance implementing the right interface?
- assert($iteratorInstance instanceof SeekableWritableFileIterator);
-
- // Set iterator here
- $this->setIteratorInstance($iteratorInstance);
-
- // Is the file's header initialized?
- if (!$this->isFileHeaderInitialized()) {
- // No, then create it (which may pre-allocate the index)
- $this->createFileHeader();
-
- // And pre-allocate a bit
- $this->preAllocateFile('index');
- } // END - if
+ public function closeFile () {
+ throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+ }