public abstract class AbstractExternalizablePage extends Object implements ExternalizablePage
Modifier and Type | Field and Description |
---|---|
private boolean |
dirty
The dirty flag of this page.
|
private int |
id
The unique id if this page.
|
private static long |
serialVersionUID
Serial version
|
Constructor and Description |
---|
AbstractExternalizablePage()
Empty constructor for Externalizable interface.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
int |
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.
|
private static final long serialVersionUID
private int id
private boolean dirty
public AbstractExternalizablePage()
public final int getPageID()
public final void setPageID(int id)
public final boolean isDirty()
public final void setDirty(boolean dirty)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
- the stream to write the object toIOException
- 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 objectIOException
- if I/O errors occurClassNotFoundException
- If the class for an object being restored
cannot be found.public String toString()
public boolean equals(Object o)
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.