Class EWAHPointer32
java.lang.Object
com.googlecode.javaewah32.symmetric.EWAHPointer32
- All Implemented Interfaces:
Comparable<EWAHPointer32>
Wrapper around an IteratingBufferedRunningLengthWord used by the
RunningBitmapMerge class.
- Since:
- 0.8.2
- Author:
- Daniel Lemire
-
Field Summary
FieldsModifier and TypeFieldDescriptionUnderlying iterator -
Constructor Summary
ConstructorsConstructorDescriptionEWAHPointer32(int previousEndRun, IteratingBufferedRunningLengthWord32 rw, int pos)
Construct a pointer over an IteratingBufferedRunningLengthWord. -
Method Summary
Modifier and TypeMethodDescriptionint
void
int
compareTo(EWAHPointer32 other)
int
endOfRun()
boolean
void
Process the next run
-
Field Details
-
iterator
Underlying iterator
-
-
Constructor Details
-
EWAHPointer32
Construct a pointer over an IteratingBufferedRunningLengthWord.- Parameters:
previousEndRun
- word where the previous run endedrw
- the iteratorpos
- current position (in word)
-
-
Method Details
-
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
- Parameters:
f
- call the function with the current information
-
compareTo
- Specified by:
compareTo
in interfaceComparable<EWAHPointer32>
-