logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Plucene::Bitvector - a vector of bits

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.

perl v5.36.0                                       2022-12-04                            Plucene::Bitvector(3pm)

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;

See Also