Java org.apache.lucene.util FixedBitSet fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.util FixedBitSet fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.util FixedBitSet.

The text is from its open source code.

Constructor

FixedBitSet(int numBits)
Creates a new LongBitSet.
FixedBitSet(long[] storedBits, int numBits)
Creates a new LongBitSet using the provided long[] array as backing store.

Method

voidand(FixedBitSet other)
this = this AND other
voidandNot(FixedBitSet other)
this = this AND NOT other
intbits2words(int numBits)
returns the number of 64 bit words it would take to hold numBits
intcardinality()
Returns number of set bits.
voidclear(int index)
voidclear(int startIndex, int endIndex)
FixedBitSetensureCapacity(FixedBitSet bits, int numBits)
If the given FixedBitSet is large enough to hold numBits+1 , returns the given bits, otherwise returns a new FixedBitSet which can hold the requested number of bits.
booleanequals(Object o)
voidflip(int startIndex, int endIndex)
Flips a range of bits
booleanget(int index)
booleangetAndClear(int index)
booleangetAndSet(int index)
long[]getBits()
Expert.
inthashCode()
intlength()
intnextSetBit(int index)
voidor(DocIdSetIterator iter)
voidor(FixedBitSet other)
this = this OR other
intprevSetBit(int index)
voidset(int startIndex, int endIndex)
Sets a range of bits
voidset(int index)
voidxor(FixedBitSet other)
this = this XOR other
voidxor(DocIdSetIterator iter)
Does in-place XOR of the bits provided by the iterator.