Top Description Fields Constructors Methods
com.googlecode.javaewah

pack-priv final Class ReverseEWAHIterator

extends Object
Class Inheritance
Imports
java.util.Stack

The class ReverseEWAHIterator represents a special type of efficient iterator iterating over (uncompressed) words of bits in reverse order.
Author
Gregory Ssi-Yan-Kai

Field Summary

Modifier and TypeField and Description
private int
pointer

The pointer representing the location of the current running length word in the array of words (embedded in the rlw attribute).

private Stack<Integer>
positions

The positions of running length words (embedded in the rlw attribute).

protected RunningLengthWord
rlw

The current running length word.

Constructor Summary

AccessConstructor and Description
public
ReverseEWAHIterator(final Buffer
the buffer
buffer
)

Instantiates a new reverse EWAH iterator.

Method Summary

Modifier and TypeMethod and Description
public Buffer

Returns:

the buffer
buffer
()

Access to the buffer

public boolean

Returns:

true, if successful
hasPrevious
()

Checks for previous.

public int

Returns:

the int
position
()

Position of the current running length word.

public RunningLengthWord

Returns:

the running length word
previous
()

Previous running length word.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pointerback to summary
private int pointer

The pointer representing the location of the current running length word in the array of words (embedded in the rlw attribute).

positionsback to summary
private Stack<Integer> positions

The positions of running length words (embedded in the rlw attribute).

rlwback to summary
protected RunningLengthWord rlw

The current running length word.

Constructor Detail

ReverseEWAHIteratorback to summary
public ReverseEWAHIterator(final Buffer buffer)

Instantiates a new reverse EWAH iterator.

Parameters
buffer:Buffer

the buffer

Method Detail

bufferback to summary
public Buffer buffer()

Access to the buffer

Returns:Buffer

the buffer

hasPreviousback to summary
public boolean hasPrevious()

Checks for previous.

Returns:boolean

true, if successful

positionback to summary
public int position()

Position of the current running length word.

Returns:int

the int

previousback to summary
public RunningLengthWord previous()

Previous running length word.

Returns:RunningLengthWord

the running length word