java.lang.Object
org.bitlap.roaringbitmap.longlong.HighLowContainer
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclear()clear to be a empty fresh oneget a container iteratorvoiddeserialize(DataInput dataInput) deserialize from the input byte streamvoiddeserialize(ByteBuffer buffer) deserialize from the input ByteBuffer in little endianbooleanlongfirst()Gets the first value in the arraygetContainer(long containerIdx) inthashCode()get a key iteratorhighKeyLeafNodeIterator(boolean reverse) highKeyLeafNodeIteratorFrom(long bound, boolean reverse) booleanisEmpty()whether it's emptylonglast()Gets the last value in the arrayvoidput the 48 bit key and the corresponding containervoidremove(byte[] highPart) Attempt to remove the container that corresponds to the 48 bit key.voidreplaceContainer(long containerIdx, Container container) replace the specified position one with a fresh containersearchContainer(byte[] highPart) search the container by the given 48 bit high part keyvoidserialize(DataOutput dataOutput) serialize into the byte streamvoidserialize(ByteBuffer buffer) serialize into the ByteBuffer in little endianlongserialized size in bytes
-
构造器详细资料
-
HighLowContainer
public HighLowContainer()
-
-
方法详细资料
-
getContainer
-
searchContainer
search the container by the given 48 bit high part key- 参数:
highPart- the 48 bit key array- 返回:
- the container with the container index
-
put
put the 48 bit key and the corresponding container- 参数:
highPart- the 48 bit keycontainer- the container
-
remove
public void remove(byte[] highPart) Attempt to remove the container that corresponds to the 48 bit key.- 参数:
highPart- the 48 bit key
-
containerIterator
get a container iterator- 返回:
- a container iterator
-
highKeyIterator
get a key iterator- 返回:
- a key iterator
-
highKeyLeafNodeIterator
- 参数:
reverse- true ascending order, false: descending order- 返回:
- the leaf node iterator
-
highKeyLeafNodeIteratorFrom
-
replaceContainer
replace the specified position one with a fresh container- 参数:
containerIdx- the position of the containercontainer- the fresh container
-
isEmpty
public boolean isEmpty()whether it's empty- 返回:
- true: empty,false: not empty
-
first
public long first()Gets the first value in the array- 返回:
- the first value in the array
- 抛出:
NoSuchElementException- if empty
-
last
public long last()Gets the last value in the array- 返回:
- the last value in the array
- 抛出:
NoSuchElementException- if empty
-
serialize
serialize into the ByteBuffer in little endian- 参数:
buffer- the ByteBuffer should be large enough to hold the data- 抛出:
IOException- indicate exception happened
-
deserialize
deserialize from the input ByteBuffer in little endian- 参数:
buffer- the ByteBuffer- 抛出:
IOException- indicate exception happened
-
serializedSizeInBytes
public long serializedSizeInBytes()serialized size in bytes- 返回:
- the size in bytes
-
serialize
serialize into the byte stream- 参数:
dataOutput- the output stream- 抛出:
IOException- indicate the io exception happened
-
deserialize
deserialize from the input byte stream- 参数:
dataInput- the input byte stream- 抛出:
IOException- indicate the io exception happened
-
clear
public void clear()clear to be a empty fresh one -
hashCode
public int hashCode() -
equals
-