public class HighLowContainer
extends java.lang.Object
| 构造器和说明 |
|---|
HighLowContainer() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear()
clear to be a empty fresh one
|
ContainerIterator |
containerIterator()
get a container iterator
|
void |
deserialize(java.nio.ByteBuffer buffer)
deserialize from the input ByteBuffer in little endian
|
void |
deserialize(java.io.DataInput dataInput)
deserialize from the input byte stream
|
boolean |
equals(java.lang.Object object) |
Container |
getContainer(long containerIdx) |
int |
hashCode() |
KeyIterator |
highKeyIterator()
get a key iterator
|
LeafNodeIterator |
highKeyLeafNodeIterator(boolean reverse) |
LeafNodeIterator |
highKeyLeafNodeIteratorFrom(long bound,
boolean reverse) |
boolean |
isEmpty()
whether it's empty
|
void |
put(byte[] highPart,
Container container)
put the 48 bit key and the corresponding container
|
void |
remove(byte[] highPart)
Attempt to remove the container that corresponds to the 48 bit key.
|
void |
replaceContainer(long containerIdx,
Container container)
replace the specified position one with a fresh container
|
ContainerWithIndex |
searchContainer(byte[] highPart)
search the container by the given 48 bit high part key
|
void |
serialize(java.nio.ByteBuffer buffer)
serialize into the ByteBuffer in little endian
|
void |
serialize(java.io.DataOutput dataOutput)
serialize into the byte stream
|
long |
serializedSizeInBytes()
serialized size in bytes
|
public Container getContainer(long containerIdx)
public ContainerWithIndex searchContainer(byte[] highPart)
highPart - the 48 bit key arraypublic void put(byte[] highPart,
Container container)
highPart - the 48 bit keycontainer - the containerpublic void remove(byte[] highPart)
highPart - the 48 bit keypublic ContainerIterator containerIterator()
public KeyIterator highKeyIterator()
public LeafNodeIterator highKeyLeafNodeIterator(boolean reverse)
reverse - true :ascending order, false: descending orderpublic LeafNodeIterator highKeyLeafNodeIteratorFrom(long bound, boolean reverse)
public void replaceContainer(long containerIdx,
Container container)
containerIdx - the position of the containercontainer - the fresh containerpublic boolean isEmpty()
public void serialize(java.nio.ByteBuffer buffer)
throws java.io.IOException
buffer - the ByteBuffer should be large enough to hold the datajava.io.IOException - indicate exception happenedpublic void deserialize(java.nio.ByteBuffer buffer)
throws java.io.IOException
buffer - the ByteBufferjava.io.IOException - indicate exception happenedpublic long serializedSizeInBytes()
public void serialize(java.io.DataOutput dataOutput)
throws java.io.IOException
dataOutput - the output streamjava.io.IOException - indicate the io exception happenedpublic void deserialize(java.io.DataInput dataInput)
throws java.io.IOException
dataInput - the input byte streamjava.io.IOException - indicate the io exception happenedpublic void clear()
public int hashCode()
hashCode 在类中 java.lang.Objectpublic boolean equals(java.lang.Object object)
equals 在类中 java.lang.Object