com.googlecode.javaewah32.symmetric
Class EWAHPointer32

java.lang.Object
  extended by com.googlecode.javaewah32.symmetric.EWAHPointer32
All Implemented Interfaces:
Comparable<EWAHPointer32>

public final class EWAHPointer32
extends Object
implements Comparable<EWAHPointer32>

Wrapper around an IteratingBufferedRunningLengthWord used by the RunningBitmapMerge class.

Since:
0.8.2
Author:
Daniel Lemire

Field Summary
 IteratingBufferedRunningLengthWord32 iterator
          Underlying iterator
 
Constructor Summary
EWAHPointer32(int previousendrun, IteratingBufferedRunningLengthWord32 rw, int pos)
          Construct a pointer over an IteratingBufferedRunningLengthWord.
 
Method Summary
 int beginOfRun()
           
 void callbackUpdate(UpdateableBitmapFunction32 f)
           
 int compareTo(EWAHPointer32 other)
           
 int endOfRun()
           
 boolean hasNoData()
           
 void parseNextRun()
          Process the next run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iterator

public IteratingBufferedRunningLengthWord32 iterator
Underlying iterator

Constructor Detail

EWAHPointer32

public EWAHPointer32(int previousendrun,
                     IteratingBufferedRunningLengthWord32 rw,
                     int pos)
Construct a pointer over an IteratingBufferedRunningLengthWord.

Parameters:
previousendrun - word where the previous run ended
rw - the iterator
pos - current position (in word)
Method Detail

endOfRun

public int endOfRun()
Returns:
the end of the current run

beginOfRun

public int beginOfRun()
Returns:
the beginning of the current run

parseNextRun

public void parseNextRun()
Process the next run


hasNoData

public boolean hasNoData()
Returns:
true if there is no more data

callbackUpdate

public void callbackUpdate(UpdateableBitmapFunction32 f)
Parameters:
f - call the function with the current information

compareTo

public int compareTo(EWAHPointer32 other)
Specified by:
compareTo in interface Comparable<EWAHPointer32>


Copyright © 2014. All Rights Reserved.