Zend Framework  1.12
Public Member Functions | List of all members
Zend_Search_Lucene_Index_SegmentWriter_StreamWriter Class Reference

Public Member Functions

 __construct (Zend_Search_Lucene_Storage_Directory $directory, $name)
 Object constructor.
 
 createStoredFieldsFiles ()
 Create stored fields files and open them for write.
 
 addNorm ($fieldName, $normVector)
 
 close ()
 Close segment, write it to disk and return segment info.
 
- Public Member Functions inherited from Zend_Search_Lucene_Index_SegmentWriter
 __construct (Zend_Search_Lucene_Storage_Directory $directory, $name)
 Object constructor.
 
 addField (Zend_Search_Lucene_Field $field)
 Add field to the segment.
 
 addFieldInfo (Zend_Search_Lucene_Index_FieldInfo $fieldInfo)
 Add fieldInfo to the segment.
 
 getFieldInfos ()
 Returns array of FieldInfo objects.
 
 addStoredFields ($storedFields)
 Add stored fields information.
 
 count ()
 Returns the total number of documents in this segment.
 
 getName ()
 Return segment name.
 
 initializeDictionaryFiles ()
 Create dicrionary, frequency and positions files and write necessary headers.
 
 addTerm ($termEntry, $termDocs)
 Add term.
 
 closeDictionaryFiles ()
 Close dictionary.
 
 close ()
 Close segment, write it to disk and return segment info.
 

Additional Inherited Members

- Static Public Attributes inherited from Zend_Search_Lucene_Index_SegmentWriter
static $indexInterval = 128
 
static $skipInterval = 0x7FFFFFFF
 
static $maxSkipLevels = 0
 
- Protected Member Functions inherited from Zend_Search_Lucene_Index_SegmentWriter
 _dumpFNM ()
 Dump Field Info (.fnm) segment file.
 
 _dumpTermDictEntry (Zend_Search_Lucene_Storage_File $dicFile, &$prevTerm, Zend_Search_Lucene_Index_Term $term, &$prevTermInfo, Zend_Search_Lucene_Index_TermInfo $termInfo)
 Dump Term Dictionary segment file entry.
 
 _generateCFS ()
 Generate compound index file.
 
- Protected Attributes inherited from Zend_Search_Lucene_Index_SegmentWriter
 $_docCount = 0
 
 $_name
 
 $_directory
 
 $_files = array()
 
 $_fields = array()
 
 $_norms = array()
 
 $_fdxFile = null
 
 $_fdtFile = null
 

Constructor & Destructor Documentation

__construct ( Zend_Search_Lucene_Storage_Directory  $directory,
  $name 
)

Object constructor.

Parameters
Zend_Search_Lucene_Storage_Directory$directory
string$name

Member Function Documentation

addNorm (   $fieldName,
  $normVector 
)
close ( )

Close segment, write it to disk and return segment info.

Returns
Zend_Search_Lucene_Index_SegmentInfo

Zend_Search_Lucene_Index_SegmentInfo

createStoredFieldsFiles ( )

Create stored fields files and open them for write.