java.lang.Object
org.roaringbitmap.art.Node
- Direct Known Subclasses:
BranchNode,LeafNode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Nodeclone()static Nodedeserialize(DataInput dataInput) deserialize into a typed node from the byte streamstatic Nodedeserialize(ByteBuffer byteBuffer) deserialize into a typed nodevoidserialize(DataOutput dataOutput) serializevoidserialize(ByteBuffer byteBuffer) serializeprotected abstract voidserializeHeader(DataOutput dataOutput) protected abstract voidserializeHeader(ByteBuffer byteBuffer) protected intabstract intthe serialized size except the common node header partintthe serialized size in bytes of this nodeprotected static byte[]sortSmallByteArray(byte[] key, Node[] children, int left, int right) sort the small arrays through the insertion sort alg.
-
Constructor Details
-
Node
public Node()
-
-
Method Details
-
clone
-
sortSmallByteArray
sort the small arrays through the insertion sort alg. -
serialize
serialize- Parameters:
dataOutput- the DataOutput- Throws:
IOException- signal a exception happened while the serialization
-
serialize
serialize- Parameters:
byteBuffer- the ByteBuffer- Throws:
IOException- signal a exception happened while the serialization
-
serializeSizeInBytes
public int serializeSizeInBytes()the serialized size in bytes of this node- Returns:
- the size in bytes
-
deserialize
deserialize into a typed node from the byte stream- Parameters:
dataInput- the input byte stream- Returns:
- the typed node
- Throws:
IOException- indicate a exception happened
-
deserialize
deserialize into a typed node- Parameters:
byteBuffer- the ByteBuffer- Returns:
- the typed node
- Throws:
IOException- indicate a exception happened
-
serializeNodeBodySizeInBytes
public abstract int serializeNodeBodySizeInBytes()the serialized size except the common node header part- Returns:
- the size in bytes
-
serializeHeader
- Throws:
IOException
-
serializeHeader
- Throws:
IOException
-
serializeHeaderSizeInBytes
protected int serializeHeaderSizeInBytes()
-