DOKK / manpages / debian 10 / libplucene-perl / Plucene::Bitvector.3pm.en
Plucene::Bitvector(3pm) User Contributed Perl Documentation Plucene::Bitvector(3pm)

Plucene::Bitvector - a vector of bits

        # isa Bit::Vector::Minimal;
        my $bitvector = Plucene::Bitvector->read($stream);
        $bitvector->write($stream);
        
        my $count = $bitvector->count;

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.

        my $count = $bitvector->count;

Compute the number of one-bits.

        $bitvector->write($stream);

Write this vector to the passed in stream.

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

Read from the passed in stream.

2018-04-02 perl v5.26.1