|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.record.RID
public class RID
An identifier for a record within a file. A RID consists of the block number in the file, and the ID of the record in that block.
Constructor Summary | |
---|---|
RID(int blknum,
int id)
Creates a RID for the record having the specified ID in the specified block. |
Method Summary | |
---|---|
int |
blockNumber()
Returns the block number associated with this RID. |
boolean |
equals(Object obj)
|
int |
id()
Returns the ID associated with this RID. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RID(int blknum, int id)
blknum
- the block number where the record livesid
- the record's IDMethod Detail |
---|
public int blockNumber()
public int id()
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |