public class RecordId
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
RecordId(PageId pid,
int tupleno)
Creates a new RecordId referring to the specified PageId and tuple
number.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Two RecordId objects are considered equal if they represent the same
tuple.
|
PageId |
getPageId() |
int |
hashCode()
You should implement the hashCode() so that two equal RecordId instances
(with respect to equals()) have the same hashCode().
|
int |
tupleno() |
private static final long serialVersionUID
public RecordId(PageId pid, int tupleno)
pid
- the pageid of the page on which the tuple residestupleno
- the tuple number within the page.public int tupleno()
public PageId getPageId()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object