# Plucene::Bitvector - a vector of bits - perldoc - [phpMan]

## NAME
    [Plucene::Bitvector](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ABitvector/markdown) - a vector of bits

## SYNOPSIS
            # isa [Bit::Vector::Minimal](https://www.chedong.com/phpMan.php/perldoc/Bit%3A%3AVector%3A%3AMinimal/markdown);

            my $bitvector = [Plucene::Bitvector](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ABitvector/markdown)->read($stream);

            $bitvector->write($stream);

            my $count = $bitvector->count;

## DESCRIPTION
    A serialisable implementation of a vector of bits.

    This subclass of [Bit::Vector::Minimal](https://www.chedong.com/phpMan.php/perldoc/Bit%3A%3AVector%3A%3AMinimal/markdown) 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](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ABitvector/markdown)->read($stream);

    Read from the passed in stream.

