org.apache.lucene.util
public final class BitVector extends Object
Version: $Id: BitVector.java 150536 2004-09-28 18:15:52Z cutting $
Constructor Summary | |
---|---|
BitVector(int n) Constructs a vector capable of holding n bits. | |
BitVector(Directory d, String name) |
Method Summary | |
---|---|
void | clear(int bit) Sets the value of bit to zero. |
int | count() Returns the total number of one bits in this vector. |
boolean | get(int bit) Returns true if bit is one and
false if it is zero. |
void | set(int bit) Sets the value of bit to one. |
int | size() Returns the number of bits in this vector. |
void | write(Directory d, String name) Writes this vector to the file name in Directory
d , in a format that can be read by the constructor BitVector. |
n
bits.bit
to zero.true
if bit
is one and
false
if it is zero.bit
to one.name
in Directory
d
, in a format that can be read by the constructor BitVector.