Tony Bowden > Plucene > Plucene::Bitvector

Download:
Plucene-1.25.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  12
Open  5
View/Report Bugs
Source  

NAME ^

Plucene::Bitvector - a vector of bits

SYNOPSIS ^

        # isa Bit::Vector::Minimal;

        my $bitvector = Plucene::Bitvector->read($stream);

        $bitvector->write($stream);
        
        my $count = $bitvector->count;

DESCRIPTION ^

A serialisable implementation of a vector of bits.

This subclass of Bit::Vector::Minimal allows the writing (and reading) of vectors to (and from) a Plucene stream.

METHODS ^

count

        my $count = $bitvector->count;

Compute the number of one-bits.

write

        $bitvector->write($stream);

Write this vector to the passed in stream.

read

        my $bitvector = Plucene::Bitvector->read($stream);

Read from the passed in stream.

syntax highlighting: