- 所有超级接口:
Cloneable,Comparable<MappeableContainerPointer>
This interface allows you to iterate over the containers in a roaring bitmap.
-
方法概要
修饰符和类型方法说明voidadvance()Move to the next containerclone()Create a copyintReturns the cardinality of the current container.This method can be used to check whether there is current a valid container as it returns null when there is not.intGet the size in bytes of the container.booleanbooleanReturns true if it is a bitmap container (MappeableBitmapContainer).booleanReturns true if it is a run container (MappeableRunContainer).charkey()The key is a 16-bit integer that indicates the position of the container in the roaring bitmap.voidprevious()Move to the previous container从接口继承的方法 java.lang.Comparable
compareTo
-
方法详细资料
-
advance
void advance()Move to the next container -
clone
MappeableContainerPointer clone()Create a copy- 返回:
- return a clone of this pointer
-
getCardinality
int getCardinality()Returns the cardinality of the current container. Can be faster than loading the container first.- 返回:
- cardinality of the current container
-
getContainer
MappeableContainer getContainer()This method can be used to check whether there is current a valid container as it returns null when there is not.- 返回:
- null or the current container
-
getSizeInBytes
int getSizeInBytes()Get the size in bytes of the container. Used for sorting.- 返回:
- the size in bytes
-
hasContainer
boolean hasContainer()- 返回:
- whether there is a container at the current position
-
isBitmapContainer
boolean isBitmapContainer()Returns true if it is a bitmap container (MappeableBitmapContainer).- 返回:
- boolean indicated if it is a bitmap container
-
isRunContainer
boolean isRunContainer()Returns true if it is a run container (MappeableRunContainer).- 返回:
- boolean indicated if it is a run container
-
key
char key()The key is a 16-bit integer that indicates the position of the container in the roaring bitmap. To be interpreted as an unsigned integer.- 返回:
- the key
-
previous
void previous()Move to the previous container
-