Tony Bowden > Plucene-1.25 > Plucene::Index::SegmentMerger

Download:
Plucene-1.25.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  12
Open  5
View/Report Bugs
Source  

NAME ^

Plucene::Index::SegmentMerger - the Segment merger

SYNOPSIS ^

        my $merger = Plucene::Index::SegmentMerger->new();

        $merger->add(Plucene::Index::SegmentReader $reader);
        $merger->merge;

DESCRIPTION ^

This is the segment merger class.

METHODS ^

new

        my $merger = Plucene::Index::SegmentMerger->new();

This will create a new Plucene::Index::SegmentMerger object.

add

        $merger->add(Plucene::Index::SegmentReader $reader);

segment_reader

merge

        $merger->merge;

Perform the merging. After the merge, there will be no readers left stored in the merger object.

syntax highlighting: