- 所有超级接口:
Cloneable,Comparable<ContainerPointer>
This interface allows you to iterate over the containers in a roaring bitmap.
-
方法概要
修饰符和类型方法说明voidadvance()Move to the next containerclone()Create a copyintReturn the cardinality of the current containerThis method can be used to check whether there is current a valid container as it returns null when there is not.booleanCheck whether the current container is a bitmap container.booleanCheck whether the current container is a run container.charkey()The key is a 16-bit integer that indicates the position of the container in the roaring bitmap.从接口继承的方法 java.lang.Comparable
compareTo
-
方法详细资料
-
advance
void advance()Move to the next container -
clone
ContainerPointer clone()Create a copy- 返回:
- return a clone of this pointer
-
getCardinality
int getCardinality()Return the cardinality of the current container- 返回:
- the cardinality
-
getContainer
Container 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
-
isBitmapContainer
boolean isBitmapContainer()Check whether the current container is a bitmap container.- 返回:
- whether it is a bitmap container
-
isRunContainer
boolean isRunContainer()Check whether the current container is a run container.- 返回:
- whether 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
-