Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Plucene::Index::FieldsWriter

Name Plucene::Index::FieldsWriter
Version
Located at /usr/share/perl5
File /usr/share/perl5/Plucene/Index/FieldsWriter.pm
Is Core No
Search CPAN for this module Plucene::Index::FieldsWriter
Documentation Plucene::Index::FieldsWriter
Module Details Plucene::Index::FieldsWriter

NAME

Plucene::Index::FieldsWriter - writes Fields to a Document


SYNOPSIS

        my $writer = Plucene::Index::FieldsWriter->new(
                $dir_name, $segment, $field_infos);
        $writer->add_document(Plucene::Document $doc);


DESCRIPTION

This class add documents to the appropriate files.


METHODS

new

        my $writer = Plucene::Index::FieldsWriter->new(
                $dir_name, $segment, $field_infos);

This will create a new Plucene::Index::FieldsWriter object with the passed directory name, segment and field infos.


=cut

# private FieldInfos fieldInfos; # private OutputStream fieldsStream; # private OutputStream indexStream;

# FieldsWriter(Directory d, String segment, FieldInfos fn) # throws IOException { # fieldInfos = fn; # fieldsStream = d.createFile(segment + ``.fdt''); # indexStream = d.createFile(segment + ``.fdx''); # }

sub new { my ($self, $d, $segment, $fn) = @_; bless { field_infos => $fn, segment => $segment, fields_stream => Plucene::Store::OutputStream->new(``$d/$segment.fdt''), index_stream => Plucene::Store::OutputStream->new(``$d/$segment.fdx''), }, $self; }

close

        $writer->close;

add_document

        $writer->add_document(Plucene::Document $doc);

This will add the passed Plucene::Document.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026