Package com.qfs.bitmap
Interface IWritableBitmapIndex
- All Superinterfaces:
IBitmapIndex,IMemoryMonitored
- All Known Implementing Classes:
ABitmapIndex,QFSBitmapIndex
An indexing structure using bitmaps to resolve point queries and range queries. The index is
multilevel, the fields of a level can have multiple values depending on the cardinality of the
level. Each possible value of each level is indexed with a bitmap so that finding the rows that
match a particular query resorts to AND / OR logical operations on the bitmaps.
To speedup access and minimize storage cost the values in a level are coded as positive integers. In the context of range queries, the value -1 is reserved to represent 'ANY' value on a level.
To speedup access and minimize storage cost the values in a level are coded as positive integers. In the context of range queries, the value -1 is reserved to represent 'ANY' value on a level.
- Author:
- ActiveViam
-
Field Summary
Fields inherited from interface com.qfs.bitmap.IBitmapIndex
ANY, MATCH_FROM_ALLOWED_RATIO_THRESHOLD -
Method Summary
Modifier and TypeMethodDescriptionintappend(int[] tuple) Appends a tuple in the index.intappend(IPointList source) Appends an entire series of points.intappend(IPointList source, int pointPosition) Appends a tuple read from a point list in the index.intappend(IPointList source, int from, int to) Appends a series of points as a batch operation.voidclear()Clears the whole index, truncating all bitmaps to size zero.Methods inherited from interface com.qfs.bitmap.IBitmapIndex
and, and, createBitmap, createBitmap, createOnesBitmap, dataSizeInBytes, getBitmap, getBitmaps, getLevelCardinality, getLevels, getOtherBitmaps, matchBitmap, matchBitmap, matchBitmap, matchBitmap, matchBitmap, matchBitmap, matchFromExcludedValues, matchFromIncludedValues, matchInCondition, matchProcedure, matchProcedure, or, shouldMatchFromExcludedValues, size, sizeInBytesMethods inherited from interface com.qfs.monitoring.memory.IMemoryMonitored
getMemoryStatistic
-
Method Details
-
append
int append(int[] tuple) Appends a tuple in the index.- Parameters:
tuple- tuple to consider- Returns:
- new size of this index
-
append
Appends a tuple read from a point list in the index.- Parameters:
source- list of pointspointPosition- index in the list of the point to append- Returns:
- new size of this index
-
append
Appends an entire series of points.- Parameters:
source- list of points to append to this index- Returns:
- new size of this index
-
append
Appends a series of points as a batch operation.- Parameters:
source- thepoint sourcefrom- the starting index of the series of points to append (inclusive)to- the end index of the series of point to append (exclusive)- Returns:
- the index of the last appended point
-
clear
void clear()Clears the whole index, truncating all bitmaps to size zero.
-