|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.javaewah.IteratorAggregation
public class IteratorAggregation
Set of helper functions to aggregate bitmaps.
| Field Summary | |
|---|---|
static int |
DEFAULTMAXBUFSIZE
An optimization option. |
| Constructor Summary | |
|---|---|
IteratorAggregation()
|
|
| Method Summary | |
|---|---|
static IteratingRLW |
bufferedand(int bufsize,
IteratingRLW... al)
Aggregate the iterators using a bitmap buffer. |
static IteratingRLW |
bufferedand(IteratingRLW... al)
Aggregate the iterators using a bitmap buffer. |
static IteratingRLW |
bufferedor(int bufsize,
IteratingRLW... al)
Aggregate the iterators using a bitmap buffer. |
static IteratingRLW |
bufferedor(IteratingRLW... al)
Aggregate the iterators using a bitmap buffer. |
static IteratingRLW |
bufferedxor(int bufsize,
IteratingRLW... al)
Aggregate the iterators using a bitmap buffer. |
static IteratingRLW |
bufferedxor(IteratingRLW... al)
Aggregate the iterators using a bitmap buffer. |
protected static long |
discharge(BitmapStorage container,
IteratingRLW i,
long max)
Write out up to max words, returns how many were written |
protected static void |
dischargeAsEmpty(BitmapStorage container,
IteratingRLW i)
Write out the content of the iterator, but as if it were all zeros. |
protected static long |
dischargeNegated(BitmapStorage container,
IteratingRLW i,
long max)
Write out up to max negated words, returns how many were written |
protected static int |
inplaceand(long[] bitmap,
IteratingRLW i)
|
protected static int |
inplaceor(long[] bitmap,
IteratingRLW i)
|
protected static int |
inplacexor(long[] bitmap,
IteratingRLW i)
|
static IteratingRLW |
not(IteratingRLW x)
|
static void |
xorToContainer(BitmapStorage container,
int desiredrlwcount,
IteratingRLW rlwi,
IteratingRLW rlwj)
Compute the first few words of the XOR aggregate between two iterators. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULTMAXBUFSIZE
| Constructor Detail |
|---|
public IteratorAggregation()
| Method Detail |
|---|
public static IteratingRLW not(IteratingRLW x)
x - iterator to negate
public static IteratingRLW bufferedand(IteratingRLW... al)
al - set of iterators to aggregate
public static IteratingRLW bufferedand(int bufsize,
IteratingRLW... al)
al - set of iterators to aggregatebufsize - size of the internal buffer used by the iterator in 64-bit words (per input iterator)
public static IteratingRLW bufferedor(IteratingRLW... al)
al - set of iterators to aggregate
public static IteratingRLW bufferedor(int bufsize,
IteratingRLW... al)
al - iterators to aggregatebufsize - size of the internal buffer used by the iterator in 64-bit words
public static IteratingRLW bufferedxor(IteratingRLW... al)
al - set of iterators to aggregate
public static IteratingRLW bufferedxor(int bufsize,
IteratingRLW... al)
al - iterators to aggregatebufsize - size of the internal buffer used by the iterator in 64-bit words
protected static void dischargeAsEmpty(BitmapStorage container,
IteratingRLW i)
container - where we writei - the iterator
protected static long discharge(BitmapStorage container,
IteratingRLW i,
long max)
container - target for writesi - source of datamax - maximal number of writes
protected static long dischargeNegated(BitmapStorage container,
IteratingRLW i,
long max)
container - target for writesi - source of datamax - maximal number of writes
public static void xorToContainer(BitmapStorage container,
int desiredrlwcount,
IteratingRLW rlwi,
IteratingRLW rlwj)
container - where to writedesiredrlwcount - number of words to be written (max)rlwi - first iterator to aggregaterlwj - second iterator to aggregate
protected static int inplaceor(long[] bitmap,
IteratingRLW i)
protected static int inplacexor(long[] bitmap,
IteratingRLW i)
protected static int inplaceand(long[] bitmap,
IteratingRLW i)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||