btree
Class KeyDataEntry

java.lang.Object
  extended bybtree.KeyDataEntry

public class KeyDataEntry
extends java.lang.Object

KeyDataEntry: define (key, data) pair.


Field Summary
 DataClass data
          data in the (key, data)
 KeyClass key
          key in the (key, data)
 
Constructor Summary
KeyDataEntry(java.lang.Integer key, PageId pageNo)
          Class constructor
KeyDataEntry(java.lang.Integer key, RID rid)
          Class constructor.
KeyDataEntry(KeyClass key, DataClass data)
          Class constructor.
KeyDataEntry(KeyClass key, PageId pageNo)
          Class constructor.
KeyDataEntry(KeyClass key, RID rid)
          Class constructor.
KeyDataEntry(java.lang.String key, PageId pageNo)
          Class constructor.
KeyDataEntry(java.lang.String key, RID rid)
          Class constructor.
 
Method Summary
 boolean equals(KeyDataEntry entry)
          shallow equal.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

public KeyClass key
key in the (key, data)


data

public DataClass data
data in the (key, data)

Constructor Detail

KeyDataEntry

public KeyDataEntry(java.lang.Integer key,
                    PageId pageNo)
Class constructor


KeyDataEntry

public KeyDataEntry(KeyClass key,
                    PageId pageNo)
Class constructor.


KeyDataEntry

public KeyDataEntry(java.lang.String key,
                    PageId pageNo)
Class constructor.


KeyDataEntry

public KeyDataEntry(java.lang.Integer key,
                    RID rid)
Class constructor.


KeyDataEntry

public KeyDataEntry(KeyClass key,
                    RID rid)
Class constructor.


KeyDataEntry

public KeyDataEntry(java.lang.String key,
                    RID rid)
Class constructor.


KeyDataEntry

public KeyDataEntry(KeyClass key,
                    DataClass data)
Class constructor.

Method Detail

equals

public boolean equals(KeyDataEntry entry)
shallow equal.

Parameters:
entry - the entry to check again key.
Returns:
true, if entry == key; else, false.