API Documentation

Search/Lucene/Index/SegmentMerger.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Search_Lucene
subpackage
Index
version
$Id: SegmentMerger.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Search_Lucene_Index_SegmentMerger

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Search_Lucene_Index_SegmentMerger

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Search_Lucene
subpackage
Index
Properties
$_writer
$_docCount
$_segmentInfos
$_mergeDone
$_fieldsMap
Methods
__construct
addSource
merge
_mergeFields
_mergeNorms
_mergeStoredFields
_mergeTerms

Description

Properties

$_docCount

integer $_docCount = ''

Number of docs in a new segment

Details

$_docCount
integer
visibility
private
default
final
false
static
false

$_fieldsMap

array $_fieldsMap = 'array'

Field map [<segment_name>][<field_number>] => <target_field_number>

Details

$_fieldsMap
array
visibility
private
default
array
final
false
static
false

$_mergeDone

boolean $_mergeDone = 'false'

Flag to signal, that merge is already done

Details

$_mergeDone
boolean
visibility
private
default
false
final
false
static
false

$_segmentInfos

array $_segmentInfos = 'array'

A set of segments to be merged

Details

$_segmentInfos
array
Zend_Search_Lucene_Index_SegmentInfo
visibility
private
default
array
final
false
static
false

$_writer

Zend_Search_Lucene_Index_SegmentWriter_StreamWriter $_writer = ''

Target segment writer

Details

$_writer
Zend_Search_Lucene_Index_SegmentWriter_StreamWriter
visibility
private
default
final
false
static
false

Methods

__construct

__construct( Zend_Search_Lucene_Storage_Directory $directory, string $name ) :

Object constructor.

Creates new segment merger with $directory as target to merge segments into and $name as a name of new segment

Arguments
$directory
Zend_Search_Lucene_Storage_Directory
$name
string
Details
visibility
public
final
false
static
false

_mergeFields

_mergeFields( ) :

Merge fields information

Details
visibility
private
final
false
static
false

_mergeNorms

_mergeNorms( ) :

Merge field's normalization factors

Details
visibility
private
final
false
static
false

_mergeStoredFields

_mergeStoredFields( ) :

Merge fields information

Details
visibility
private
final
false
static
false

_mergeTerms

_mergeTerms( ) :

Merge fields information

Details
visibility
private
final
false
static
false

addSource

addSource(  $segmentInfo ) :

Add segmnet to a collection of segments to be merged

Arguments
$segmentInfo
Details
visibility
public
final
false
static
false

merge

merge( ) : Zend_Search_Lucene_Index_SegmentInfo

Do merge.

Returns number of documents in newly created segment

Details
visibility
public
final
false
static
false
throws
Documentation was generated by DocBlox.