Class UpdateableBitmapFunction32
java.lang.Object
com.googlecode.javaewah32.symmetric.UpdateableBitmapFunction32
- Direct Known Subclasses:
ThresholdFuncBitmap32
This is a Java specification for an "updatable" Boolean function meant to run
over EWAH bitmaps.
Reference:
Daniel Lemire, Owen Kaser, Kamel Aouiche, Sorting improves word-aligned
bitmap indexes. Data & Knowledge Engineering 69 (1), pages 3-28, 2010.
- Since:
- 0.8.2
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean[](package private) int(package private) int(package private) final BitSet(package private) EWAHPointer32[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearLiteral(int pos) abstract voiddispatch(BitmapStorage32 out, int runBegin, int runend) Writes out the answer.final voidfillWithLiterals(List<EWAHPointer32> container) append to the list the literal words as EWAHPointerfinal Iterable<EWAHPointer32> Goes through the literals.final intfinal voidresize(int newsize) voidsetLiteral(int pos) final voidsetOne(int pos) final voidsetZero(int pos)
-
Field Details
-
rw
EWAHPointer32[] rw -
hammingWeight
int hammingWeight -
litWeight
int litWeight -
b
boolean[] b -
litwlist
-
-
Constructor Details
-
UpdateableBitmapFunction32
UpdateableBitmapFunction32()
-
-
Method Details
-
getNumberOfLiterals
public final int getNumberOfLiterals()- Returns:
- the current number of literal words
-
getLiterals
Goes through the literals.- Returns:
- an iterator
-
fillWithLiterals
append to the list the literal words as EWAHPointer- Parameters:
container- where we write
-
resize
public final void resize(int newsize) - Parameters:
newsize- the number of inputs
-
setLiteral
public void setLiteral(int pos) - Parameters:
pos- position of a literal
-
clearLiteral
public void clearLiteral(int pos) - Parameters:
pos- position where a literal was removed
-
setZero
public final void setZero(int pos) - Parameters:
pos- position where a zero word was added
-
setOne
public final void setOne(int pos) - Parameters:
pos- position were a 11...1 word was added
-
dispatch
Writes out the answer.- Parameters:
out- output bufferrunBegin- beginning of the runrunend- end of the run
-