global
Class RID

java.lang.Object
  extended byglobal.RID

public class RID
extends java.lang.Object

class RID


Field Summary
 PageId pageNo
          public PageId pageNo
 int slotNo
          public int slotNo
 
Constructor Summary
RID()
          default constructor of class
RID(PageId pageno, int slotno)
          constructor of class
RID(RID rid)
          copy constructor
 
Method Summary
 void copyRid(RID rid)
          make a copy of the given rid
 boolean equals(RID rid)
          Compares two RID object, i.e, this to the rid
 void writeToByteArray(byte[] ary, int offset)
          Write the rid into a byte array at offset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

slotNo

public int slotNo
public int slotNo


pageNo

public PageId pageNo
public PageId pageNo

Constructor Detail

RID

public RID()
default constructor of class


RID

public RID(PageId pageno,
           int slotno)
constructor of class


RID

public RID(RID rid)
copy constructor

Parameters:
rid -
Method Detail

copyRid

public void copyRid(RID rid)
make a copy of the given rid


writeToByteArray

public void writeToByteArray(byte[] ary,
                             int offset)
                      throws java.io.IOException
Write the rid into a byte array at offset

Parameters:
ary - the specified byte array
offset - the offset of byte array to write
Throws:
java.io.IOException - I/O errors

equals

public boolean equals(RID rid)
Compares two RID object, i.e, this to the rid

Parameters:
rid - RID object to be compared to
Returns:
true is they are equal false if not.