Docs For Class Zend_Search_Lucene_Index_SegmentWriter_DocumentWriter

## Class Zend_Search_Lucene_Index_SegmentWriter_DocumentWriter

Description

- license: New BSD License
- copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Search/Lucene/Index/SegmentWriter/DocumentWriter.php (line 37)

    Zend_Search_Lucene_Index_SegmentWriter
       |
       --Zend_Search_Lucene_Index_SegmentWriter_DocumentWriter

Variable Summary
array $_termDictionary
array $_termDocs
Method Summary
Zend_Search_Lucene_Index_SegmentWriter_DocumentWriter __construct (Zend_Search_Lucene_Storage_Directory $directory, string $name)
void addDocument (Zend_Search_Lucene_Document $document)
Zend_Search_Lucene_Index_SegmentInfo close ()
void _dumpDictionary ()
Variables
array $_termDictionary (line 46)

Term Dictionary Array of the Zend_Search_Lucene_Index_Term objects Corresponding Zend_Search_Lucene_Index_TermInfo object stored in the $_termDictionaryInfos

- access: protected

array $_termDocs (line 53)

Documents, which contain the term

- access: protected

#### Inherited Variables

Inherited from Zend_Search_Lucene_Index_SegmentWriter

> Zend_Search_Lucene_Index_SegmentWriter::$indexInterval
> Zend_Search_Lucene_Index_SegmentWriter::$skipInterval
> Zend_Search_Lucene_Index_SegmentWriter::$_directory
> Zend_Search_Lucene_Index_SegmentWriter::$_docCount
> Zend_Search_Lucene_Index_SegmentWriter::$_fdtFile
> Zend_Search_Lucene_Index_SegmentWriter::$_fdxFile
> Zend_Search_Lucene_Index_SegmentWriter::$_fields
> Zend_Search_Lucene_Index_SegmentWriter::$_files
> Zend_Search_Lucene_Index_SegmentWriter::$_name
> Zend_Search_Lucene_Index_SegmentWriter::$_norms

Methods
Constructor __construct (line 61)

Object constructor.

- access: public

Zend_Search_Lucene_Index_SegmentWriter_DocumentWriter __construct (Zend_Search_Lucene_Storage_Directory $directory, string $name)

- Zend_Search_Lucene_Storage_Directory $directory
- string $name

Redefinition of:

Zend_Search_Lucene_Index_SegmentWriter::__construct()
  Object constructor.

addDocument (line 76)

Adds a document to this segment.

- access: public
- throws: Zend_Search_Lucene_Exception

void addDocument (Zend_Search_Lucene_Document $document)

- Zend_Search_Lucene_Document $document

close (line 171)

Close segment, write it to disk and return segment info

- access: public

Zend_Search_Lucene_Index_SegmentInfo close ()

Redefinition of:

Zend_Search_Lucene_Index_SegmentWriter::close()
  Close segment, write it to disk and return segment info

_dumpDictionary (line 152)

Dump Term Dictionary (.tis) and Term Dictionary Index (.tii) segment files

- access: protected

void _dumpDictionary ()

#### Inherited Methods

Inherited From Zend_Search_Lucene_Index_SegmentWriter

> Zend_Search_Lucene_Index_SegmentWriter::__construct()
> Zend_Search_Lucene_Index_SegmentWriter::addField()
> Zend_Search_Lucene_Index_SegmentWriter::addFieldInfo()
> Zend_Search_Lucene_Index_SegmentWriter::addStoredFields()
> Zend_Search_Lucene_Index_SegmentWriter::addTerm()
> Zend_Search_Lucene_Index_SegmentWriter::close()
> Zend_Search_Lucene_Index_SegmentWriter::closeDictionaryFiles()
> Zend_Search_Lucene_Index_SegmentWriter::count()
> Zend_Search_Lucene_Index_SegmentWriter::getFieldInfos()
> Zend_Search_Lucene_Index_SegmentWriter::initializeDictionaryFiles()
> Zend_Search_Lucene_Index_SegmentWriter::_dumpFNM()
> Zend_Search_Lucene_Index_SegmentWriter::_dumpTermDictEntry()
> Zend_Search_Lucene_Index_SegmentWriter::_generateCFS()

Documentation generated on Sun, 29 Oct 2006 21:27:08 -0600 by phpDocumentor 1.3.0RC6