|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.file.Block
public class Block
A reference to a disk block.
A Block object consists of a filename and a block number.
It does not hold the contents of the block;
instead, that is the job of a Page object.
| Constructor Summary | |
|---|---|
Block(java.lang.String filename,
int blknum)
Constructs a block reference for the specified filename and block number. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
fileName()
Returns the name of the file where the block lives. |
int |
hashCode()
|
int |
number()
Returns the location of the block within the file. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Block(java.lang.String filename,
int blknum)
filename - the name of the fileblknum - the block number| Method Detail |
|---|
public java.lang.String fileName()
public int number()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||