java.lang.Object
org.bitlap.roaringbitmap.art.Node
org.bitlap.roaringbitmap.art.LeafNode
-
字段概要
字段从类继承的字段 org.bitlap.roaringbitmap.art.Node
count, ILLEGAL_IDX, nodeType, prefix, prefixLength -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voiddeserializeNodeBody(DataInput dataInput) voiddeserializeNodeBody(ByteBuffer byteBuffer) getChild(int pos) get the child at the specified position in the node, the 'pos' range from 0 to countbytegetChildKey(int pos) get the corresponding key byte of the requested positionintgetChildPos(byte k) get the position of a child corresponding to the input key 'k'longbyte[]intget the max child's positionintget the position of the min element in current node.org.bitlap.roaringbitmap.art.SearchResultgetNearestChildPos(byte key) get the position of a child corresponding to the input key 'k' if present if 'k' is not in the child, return the positions of the neighbouring nodes insteadintgetNextLargerPos(int pos) get the next position in the nodeintgetNextSmallerPos(int pos) get the next smaller element's positionremove(int pos) remove the specified position childvoidreplaceChildren(Node[] children) voidreplaceNode(int pos, Node freshOne) replace the position child to the fresh onevoidserializeNodeBody(DataOutput dataOutput) voidserializeNodeBody(ByteBuffer byteBuffer) intthe serialized size except the common node header part从类继承的方法 org.bitlap.roaringbitmap.art.Node
binarySearch, copyPrefix, deserialize, deserialize, insertLeaf, serialize, serialize, serializeSizeInBytes, sortSmallByteArray
-
字段详细资料
-
LEAF_NODE_KEY_LENGTH_IN_BYTES
public static final int LEAF_NODE_KEY_LENGTH_IN_BYTES- 另请参阅:
-
-
构造器详细资料
-
LeafNode
public LeafNode(byte[] key, long containerIdx) constructor- 参数:
key- the 48 bitcontainerIdx- the corresponding container index
-
LeafNode
public LeafNode(long key, long containerIdx) constructor- 参数:
key- a long value ,only the high 48 bit is valuablecontainerIdx- the corresponding container index
-
-
方法详细资料
-
serializeNodeBody
- 抛出:
IOException
-
serializeNodeBody
- 抛出:
IOException
-
deserializeNodeBody
- 抛出:
IOException
-
deserializeNodeBody
- 抛出:
IOException
-
serializeNodeBodySizeInBytes
public int serializeNodeBodySizeInBytes()从类复制的说明:Nodethe serialized size except the common node header part- 指定者:
serializeNodeBodySizeInBytes在类中Node- 返回:
- the size in bytes
-
getChildPos
public int getChildPos(byte k) 从类复制的说明:Nodeget the position of a child corresponding to the input key 'k'- 指定者:
getChildPos在类中Node- 参数:
k- a key value of the byte range- 返回:
- the child position corresponding to the key 'k'
-
getNearestChildPos
public org.bitlap.roaringbitmap.art.SearchResult getNearestChildPos(byte key) 从类复制的说明:Nodeget the position of a child corresponding to the input key 'k' if present if 'k' is not in the child, return the positions of the neighbouring nodes instead- 指定者:
getNearestChildPos在类中Node- 参数:
key- a key value of the byte range- 返回:
- a result indicating whether or not the key was found and the positions of the child corresponding to it or its neighbours
-
getChildKey
public byte getChildKey(int pos) 从类复制的说明:Nodeget the corresponding key byte of the requested position- 指定者:
getChildKey在类中Node- 参数:
pos- the position- 返回:
- the corresponding key byte
-
getChild
从类复制的说明:Nodeget the child at the specified position in the node, the 'pos' range from 0 to count -
replaceNode
从类复制的说明:Nodereplace the position child to the fresh one- 指定者:
replaceNode在类中Node- 参数:
pos- the positionfreshOne- the fresh node to replace the old one
-
getMinPos
public int getMinPos()从类复制的说明:Nodeget the position of the min element in current node. -
getNextLargerPos
public int getNextLargerPos(int pos) 从类复制的说明:Nodeget the next position in the node- 指定者:
getNextLargerPos在类中Node- 参数:
pos- current position,-1 to start from the min one- 返回:
- the next larger byte key's position which is close to 'pos' position,-1 for end
-
getMaxPos
public int getMaxPos()从类复制的说明:Nodeget the max child's position -
getNextSmallerPos
public int getNextSmallerPos(int pos) 从类复制的说明:Nodeget the next smaller element's position- 指定者:
getNextSmallerPos在类中Node- 参数:
pos- the position,-1 to start from the largest one- 返回:
- the next smaller key's position which is close to input 'pos' position,-1 for end
-
remove
从类复制的说明:Noderemove the specified position child -
replaceChildren
-
getContainerIdx
public long getContainerIdx() -
getKeyBytes
public byte[] getKeyBytes()
-