|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.javaewah.IteratorUtil
public class IteratorUtil
Convenience functions for working over iterators
| Constructor Summary | |
|---|---|
IteratorUtil()
|
|
| Method Summary | |
|---|---|
static int |
cardinality(IteratingRLW i)
|
static EWAHCompressedBitmap |
materialize(IteratingRLW i)
Turn an iterator into a bitmap |
static void |
materialize(IteratingRLW i,
BitmapStorage c)
Generate a bitmap from an iterator |
static long |
materialize(IteratingRLW i,
BitmapStorage c,
long Max)
Turn an iterator into a bitmap. |
static IteratingRLW[] |
toIterators(EWAHCompressedBitmap... x)
|
static IntIterator |
toSetBitsIntIterator(IteratingRLW i)
|
static Iterator<Integer> |
toSetBitsIterator(IteratingRLW i)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IteratorUtil()
| Method Detail |
|---|
public static IntIterator toSetBitsIntIterator(IteratingRLW i)
i - iterator we wish to iterate over
public static Iterator<Integer> toSetBitsIterator(IteratingRLW i)
i - iterator we wish to iterate over
public static void materialize(IteratingRLW i,
BitmapStorage c)
i - iterator we wish to materializec - where we writepublic static int cardinality(IteratingRLW i)
i - iterator we wish to iterate over
public static IteratingRLW[] toIterators(EWAHCompressedBitmap... x)
x - set of bitmaps
public static long materialize(IteratingRLW i,
BitmapStorage c,
long Max)
i - iterator we wish to materializec - where we writeMax - maximum number of words we wish to materialize
public static EWAHCompressedBitmap materialize(IteratingRLW i)
i - iterator we wish to materialize
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||