|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.persistent.AbstractPage
public abstract class AbstractPage

Abstract superclass for pages.
| Field Summary | |
|---|---|
private boolean |
dirty
The dirty flag of this page. |
private Integer |
id
The unique id if this page. |
private static long |
serialVersionUID
Serial version |
| Constructor Summary | |
|---|---|
AbstractPage()
Empty constructor for Externalizable interface. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
Integer |
getPageID()
Returns the unique id of this Page. |
int |
hashCode()
Returns as hash code value for this node the id of this node. |
boolean |
isDirty()
Returns true if this page is dirty, false otherwise. |
void |
readExternal(ObjectInput in)
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
void |
setDirty(boolean dirty)
Sets the dirty flag of this page. |
void |
setPageID(int id)
Sets the unique id of this Page. |
String |
toString()
Returns a string representation of the object. |
void |
writeExternal(ObjectOutput out)
The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private Integer id
private boolean dirty
| Constructor Detail |
|---|
public AbstractPage()
| Method Detail |
|---|
public final Integer getPageID()
getPageID in interface Pagepublic final void setPageID(int id)
setPageID in interface Pageid - the id to be setpublic final boolean isDirty()
isDirty in interface Pagepublic final void setDirty(boolean dirty)
setDirty in interface Pagedirty - the dirty flag to be set
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface Externalizableout - the stream to write the object to
IOException - Includes any I/O exceptions that may occur
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface Externalizablein - the stream to read data from in order to restore the object
IOException - if I/O errors occur
ClassNotFoundException - If the class for an object being restored
cannot be found.public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objecto - the object to be tested
public int hashCode()
hashCode in class Object
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||