|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.HeapPageId
public class HeapPageId
Unique identifier for HeapPage objects.
Constructor Summary | |
---|---|
HeapPageId(int tableId,
int pgNo)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares one PageId to another. |
int |
hashCode()
|
int |
pageno()
|
int[] |
serialize()
Return a representation of this object as an array of integers, for writing to disk. |
int |
tableid()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HeapPageId(int tableId, int pgNo)
tableId
- The table that is being referencedpgNo
- The page number in that table.Method Detail |
---|
public int tableid()
tableid
in interface PageId
public int pageno()
pageno
in interface PageId
public int hashCode()
hashCode
in interface PageId
hashCode
in class java.lang.Object
BufferPool
public boolean equals(java.lang.Object o)
equals
in interface PageId
equals
in class java.lang.Object
o
- The object to compare against (must be a PageId)
public int[] serialize()
serialize
in interface PageId
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |