|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiitb.con.indexing.isam.LeafNode<T>
public class LeafNode<T extends java.lang.Comparable<T>>
Leaf Node of the index tree. A leaf node consists of the key with respective values (instance ids).
Field Summary | |
---|---|
short |
dataSize
Size of the leaf node |
int[] |
instanceId
Instance ids for the key |
T |
key
key of the index structure |
Constructor Summary | |
---|---|
LeafNode()
|
|
LeafNode(T key)
Intializes with the key |
Method Summary | |
---|---|
java.lang.Object |
attributeDeSerialize(java.nio.ByteBuffer buf,
java.lang.Object name)
Deserializes the specified attribute to object value |
LeafNode<T> |
deSerialize(java.nio.ByteBuffer buf)
Deserializes the given bytes into leaf node. |
java.nio.ByteBuffer |
serialize(LeafNode<T> node)
Serializes into bytes of the given leaf node. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public short dataSize
public int[] instanceId
public T extends java.lang.Comparable<T> key
Constructor Detail |
---|
public LeafNode()
public LeafNode(T key)
key
- index keyMethod Detail |
---|
public java.lang.Object attributeDeSerialize(java.nio.ByteBuffer buf, java.lang.Object name)
attributeDeSerialize
in interface ItemSerializer<LeafNode<T extends java.lang.Comparable<T>>>
buf
- bytes as ByteBuffer
name
- attribute name
public LeafNode<T> deSerialize(java.nio.ByteBuffer buf)
deSerialize
in interface ItemSerializer<LeafNode<T extends java.lang.Comparable<T>>>
buf
- bytes as ByteBuffer
LeafNode
public java.nio.ByteBuffer serialize(LeafNode<T> node)
Format {[Key] : [No. of values] : [value1, value2, ..., valueN]}
serialize
in interface ItemSerializer<LeafNode<T extends java.lang.Comparable<T>>>
node
- leaf node - LeafNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |