java.lang.Object
org.roaringbitmap.art.Node
org.roaringbitmap.art.LeafNode
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voiddeserializeNodeBody(DataInput dataInput) voiddeserializeNodeBody(ByteBuffer byteBuffer) longlonggetKey()byte[]protected voidserializeHeader(DataOutput dataOutput) protected voidserializeHeader(ByteBuffer byteBuffer) voidserializeNodeBody(DataOutput dataOutput) voidserializeNodeBody(ByteBuffer byteBuffer) intthe serialized size except the common node header parttoString()Methods inherited from class org.roaringbitmap.art.Node
deserialize, deserialize, serialize, serialize, serializeHeaderSizeInBytes, serializeSizeInBytes, sortSmallByteArray
-
Field Details
-
LEAF_NODE_KEY_LENGTH_IN_BYTES
public static final int LEAF_NODE_KEY_LENGTH_IN_BYTES- See Also:
-
-
Constructor Details
-
LeafNode
public LeafNode(byte[] key, long containerIdx) constructor- Parameters:
key- the 48 bitcontainerIdx- the corresponding container index
-
LeafNode
public LeafNode(long key, long containerIdx) constructor- Parameters:
key- a long value,only the high 48 bit is valuablecontainerIdx- the corresponding container index
-
-
Method Details
-
clone
-
serializeNodeBody
- Throws:
IOException
-
serializeNodeBody
- Throws:
IOException
-
deserializeNodeBody
- Throws:
IOException
-
deserializeNodeBody
- Throws:
IOException
-
serializeNodeBodySizeInBytes
public int serializeNodeBodySizeInBytes()Description copied from class:Nodethe serialized size except the common node header part- Specified by:
serializeNodeBodySizeInBytesin classNode- Returns:
- the size in bytes
-
getContainerIdx
public long getContainerIdx() -
getKeyBytes
public byte[] getKeyBytes() -
getKey
public long getKey() -
serializeHeader
- Specified by:
serializeHeaderin classNode- Throws:
IOException
-
serializeHeader
- Specified by:
serializeHeaderin classNode- Throws:
IOException
-
toString
-