Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.persistent
Interface Page<P extends Page<P>>

Type Parameters:
P - Self-reference
All Superinterfaces:
Externalizable, Serializable
All Known Subinterfaces:
MetricalNode<N,E>, Node<N,E>, SpatialNode<N,E>
All Known Implementing Classes:
AbstractMTreeNode, AbstractNode, AbstractPage, AbstractRStarTreeNode, Deap, DeLiCluNode, MkAppTreeNode, MkCoPTreeNode, MkMaxTreeNode, MkTabTreeNode, MTreeNode, RdKNNNode, RStarTreeNode

public interface Page<P extends Page<P>>
extends Externalizable

Defines the requirements for objects that can be stored in a cache and can be persistently saved.

Author:
Elke Achtert

Method Summary
 Integer getID()
          Returns the unique id of this Page.
 boolean isDirty()
          Returns true if this page is dirty, false otherwise.
 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.
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Method Detail

getID

Integer getID()
Returns the unique id of this Page.

Returns:
the unique id of this Page

setID

void setID(int id)
Sets the unique id of this Page.

Parameters:
id - the id to be set

setFile

void setFile(PageFile<P> file)
Sets the page file of this page.

Parameters:
file - the page file to be set

isDirty

boolean isDirty()
Returns true if this page is dirty, false otherwise.

Returns:
true if this page is dirty, false otherwise

setDirty

void setDirty(boolean dirty)
Sets the dirty flag of this page.

Parameters:
dirty - the dirty flag to be set

Release 0.2 (2009-07-06_1820)