|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectglobal.RID
public class RID
A record is uniquely identified by its page number and slot number.
Field Summary | |
---|---|
PageId |
pageno
The record's page number. |
int |
slotno
The record's slot number. |
Constructor Summary | |
---|---|
RID()
Default constructor. |
|
RID(byte[] data,
short offset)
Constructs an RID stored in the given data buffer. |
|
RID(PageId pageno,
int slotno)
Constructs an RID from the given values. |
|
RID(RID rid)
Copy constructor. |
Method Summary | |
---|---|
void |
copyRID(RID rid)
Makes a copy of the given RID. |
boolean |
equals(java.lang.Object obj)
True if obj is an RID with the same values; false otherwise. |
short |
getLength()
Gets the total length of the RID (in bytes). |
int |
hashCode()
Returns a hash code value for the RID. |
java.lang.String |
toString()
Returns a string representation of the PageId. |
void |
writeData(byte[] data,
short offset)
Writes the RID into the given data buffer. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public PageId pageno
public int slotno
Constructor Detail |
---|
public RID()
public RID(RID rid)
public RID(PageId pageno, int slotno)
public RID(byte[] data, short offset)
Method Detail |
---|
public void writeData(byte[] data, short offset)
public short getLength()
public void copyRID(RID rid)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |