|
||||||||||
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(String filename,
int blknum)
Constructs a block reference for the specified filename and block number. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Block(String filename, int blknum)
filename
- the name of the fileblknum
- the block numberMethod Detail |
---|
public String fileName()
public int number()
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |