public class BitSetIterator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
NO_MORE
alternate shift implementations
// 32 bit shifts, but a long shift needed at the end
private void shift2() {
int y = (int)word;
if (y==0) {wordShift +=32; y = (int)(word >>>32); }
if ((y & 0x0000FFFF) == 0) { wordShift +=16; y>>>=16; }
if ((y & 0x000000FF) == 0) { wordShift +=8; y>>>=8; }
indexArray = bitlist[y & 0xff];
word >>>= (wordShift +1);
}
private void shift3() {
int lower = (int)word;
int lowByte = lower & 0xff;
if (lowByte != 0) {
indexArray=bitlist[lowByte];
return;
}
shift();
}
|
Constructor and Description |
---|
BitSetIterator(BitSet obs) |
BitSetIterator(long[] bits,
int numWords) |
Modifier and Type | Method and Description |
---|---|
int |
nextSetBit() |
public static final int NO_MORE
public BitSetIterator(BitSet obs)
public BitSetIterator(long[] bits, int numWords)
Copyright © 2015 Carrot Search s.c.. All rights reserved.