javaewah32
Class EWAHIterator32

java.lang.Object
  extended by javaewah32.EWAHIterator32

public final class EWAHIterator32
extends Object

The class EWAHIterator represents a special type of efficient iterator iterating over (uncompressed) words of bits.

Since:
0.5.0
Author:
Daniel Lemire

Constructor Summary
EWAHIterator32(int[] a, int sizeinwords)
          Instantiates a new eWAH iterator.
 
Method Summary
 int[] buffer()
          Access to the array of words
 int dirtyWords()
          Position of the dirty words represented by this running length word.
 boolean hasNext()
          Checks for next.
 RunningLengthWord32 next()
          Next running length word.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EWAHIterator32

public EWAHIterator32(int[] a,
                      int sizeinwords)
Instantiates a new eWAH iterator.

Parameters:
a - the array of words
sizeinwords - the number of words that are significant in the array of words
Method Detail

hasNext

public boolean hasNext()
Checks for next.

Returns:
true, if successful

next

public RunningLengthWord32 next()
Next running length word.

Returns:
the running length word

dirtyWords

public int dirtyWords()
Position of the dirty words represented by this running length word.

Returns:
the int

buffer

public int[] buffer()
Access to the array of words

Returns:
the int[]


Copyright © 2012. All Rights Reserved.