Class EWAHPointer
- java.lang.Object
-
- com.googlecode.javaewah.symmetric.EWAHPointer
-
- All Implemented Interfaces:
Comparable<EWAHPointer>
public final class EWAHPointer extends Object implements Comparable<EWAHPointer>
Wrapper around an IteratingBufferedRunningLengthWord used by the RunningBitmapMerge class.- Since:
- 0.8.0
- Author:
- Daniel Lemire
-
-
Field Summary
Fields Modifier and Type Field Description IteratingBufferedRunningLengthWord
iterator
Underlying iterator
-
Constructor Summary
Constructors Constructor Description EWAHPointer(int previousEndRun, IteratingBufferedRunningLengthWord rw, int pos)
Construct a pointer over an IteratingBufferedRunningLengthWord.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
beginOfRun()
void
callbackUpdate(UpdateableBitmapFunction f)
int
compareTo(EWAHPointer other)
int
endOfRun()
boolean
hasNoData()
void
parseNextRun()
Process the next run
-
-
-
Field Detail
-
iterator
public final IteratingBufferedRunningLengthWord iterator
Underlying iterator
-
-
Constructor Detail
-
EWAHPointer
public EWAHPointer(int previousEndRun, IteratingBufferedRunningLengthWord rw, int pos)
Construct a pointer over an IteratingBufferedRunningLengthWord.- Parameters:
previousEndRun
- word where the previous run endedrw
- the iteratorpos
- 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(UpdateableBitmapFunction f)
- Parameters:
f
- call the function with the current information
-
compareTo
public int compareTo(EWAHPointer other)
- Specified by:
compareTo
in interfaceComparable<EWAHPointer>
-
-