Constructor and Description |
---|
HeapPageId(int tableId,
int pgNo)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Compares one PageId to another.
|
int |
getTableId() |
int |
hashCode() |
int |
pageNumber() |
int[] |
serialize()
Return a representation of this object as an array of
integers, for writing to disk.
|
public HeapPageId(int tableId, int pgNo)
tableId
- The table that is being referencedpgNo
- The page number in that table.public int getTableId()
getTableId
in interface PageId
public int pageNumber()
pageNumber
in interface PageId
public int hashCode()
hashCode
in interface PageId
hashCode
in class java.lang.Object
BufferPool
public boolean equals(java.lang.Object o)