java.lang.Object
org.bitlap.roaringbitmap.art.Containers
To support the largest 2^48 different keys,we almost need 2^18 Container arrays which holds 2^31
- 8 Container
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明longaddContainer(Container container) add a Containervoiddeserialize(DataInput dataInput) Deserialize the byte stream to init this Containersvoiddeserialize(ByteBuffer byteBuffer) Deserialize the byte stream to init this ContainersgetContainer(long idx) get the Container with the corresponding container indexlongthe number of all the holding containersiterator()a iterator of the Containersvoidremove(long containerIdx) remove the container index Containervoidreplace with a fresh Containervoidreplace the container index one with a fresh Containervoidserialize(DataOutput dataOutput) Serialize the Containersvoidserialize(ByteBuffer byteBuffer) Serialize the ContainerslongReport the number of bytes required for serialization.
-
构造器详细资料
-
Containers
public Containers()Constructor
-
-
方法详细资料
-
remove
public void remove(long containerIdx) remove the container index Container- 参数:
containerIdx- the container index
-
getContainer
get the Container with the corresponding container index- 参数:
idx- the container index- 返回:
- the corresponding Container
-
addContainer
add a Container- 参数:
container- a Container- 返回:
- the container index
-
iterator
a iterator of the Containers- 返回:
- a iterator
-
replace
replace the container index one with a fresh Container- 参数:
containerIdx- the container index to replacefreshContainer- the fresh one
-
replace
replace with a fresh Container- 参数:
firstLevelIdx- the first level array indexsecondLevelIdx- the second level array indexfreshContainer- a fresh container
-
getContainerSize
public long getContainerSize()the number of all the holding containers- 返回:
- the container number
-
serializedSizeInBytes
public long serializedSizeInBytes()Report the number of bytes required for serialization.- 返回:
- The size in bytes
-
serialize
Serialize the Containers- 参数:
dataOutput- The destination DataOutput- 抛出:
IOException- Signals that an I/O exception has occurred.
-
serialize
Serialize the Containers- 参数:
byteBuffer- The destination ByteBuffer- 抛出:
IOException- Signals that an I/O exception has occurred.
-
deserialize
Deserialize the byte stream to init this Containers- 参数:
dataInput- The DataInput- 抛出:
IOException- Signals that an I/O exception has occurred.
-
deserialize
Deserialize the byte stream to init this Containers- 参数:
byteBuffer- The DataInput- 抛出:
IOException- Signals that an I/O exception has occurred.
-