Package com.googlecode.javaewah
Class EWAHIterator
java.lang.Object
com.googlecode.javaewah.EWAHIterator
- All Implemented Interfaces:
Cloneable
The class EWAHIterator represents a special type of efficient iterator
iterating over (uncompressed) words of bits. It is not meant for end users.
- Since:
- 0.1.0
- Author:
- Daniel Lemire
-
Constructor Summary
ConstructorsConstructorDescriptionEWAHIterator(com.googlecode.javaewah.Buffer buffer)
Instantiates a new EWAH iterator. -
Method Summary
Modifier and TypeMethodDescriptioncom.googlecode.javaewah.Buffer
buffer()
Access to the bufferclone()
static EWAHIterator
getEWAHIterator(EWAHCompressedBitmap bitmap)
Allow expert developers to instantiate an EWAHIterator.boolean
hasNext()
Checks for next.int
Position of the literal words represented by this running length word.next()
Next running length word.
-
Constructor Details
-
EWAHIterator
public EWAHIterator(com.googlecode.javaewah.Buffer buffer)Instantiates a new EWAH iterator.- Parameters:
buffer
- the buffer
-
-
Method Details
-
getEWAHIterator
Allow expert developers to instantiate an EWAHIterator.- Parameters:
bitmap
- we want to iterate over- Returns:
- an iterator
-
buffer
public com.googlecode.javaewah.Buffer buffer()Access to the buffer- Returns:
- the buffer
-
literalWords
public int literalWords()Position of the literal words represented by this running length word.- Returns:
- the int
-
hasNext
public boolean hasNext()Checks for next.- Returns:
- true, if successful
-
next
Next running length word.- Returns:
- the running length word
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-