|
|
|||||||||||||||||||||
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<P>
P
- Self referencepublic abstract class AbstractPage<P extends AbstractPage<P>>
Abstract superclass for pages.
Field Summary | |
---|---|
private boolean |
dirty
The dirty flag of this page. |
private PageFile<P> |
file
The file that stores the pages. |
private Integer |
id
The unique id if this page. |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
AbstractPage()
Empty constructor for Externalizable interface. |
|
AbstractPage(PageFile<P> file)
Provides a new page object. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
PageFile<P> |
getFile()
Returns the file that stores the pages. |
Integer |
getID()
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 |
setFile(PageFile<P> file)
Sets the page file of this page. |
void |
setID(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
private PageFile<P extends AbstractPage<P>> file
Constructor Detail |
---|
public AbstractPage()
public AbstractPage(PageFile<P> file)
file
- the page file that stores the pages.Method Detail |
---|
public final Integer getID()
getID
in interface Page<P extends AbstractPage<P>>
public final void setID(int id)
setID
in interface Page<P extends AbstractPage<P>>
id
- the id to be setpublic final void setFile(PageFile<P> file)
setFile
in interface Page<P extends AbstractPage<P>>
file
- the page file to be setpublic final boolean isDirty()
isDirty
in interface Page<P extends AbstractPage<P>>
public final void setDirty(boolean dirty)
setDirty
in interface Page<P extends AbstractPage<P>>
dirty
- the dirty flag to be setpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
- the stream to write the object to
IOException
- Includes any I/O exceptions that may occurpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
in
- 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 Object
public final PageFile<P> getFile()
public boolean equals(Object o)
equals
in class Object
o
- 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 |