Package elki.persistent
Interface Page
-
- All Known Subinterfaces:
ExternalizablePage,Node<E>
- All Known Implementing Classes:
AbstractExternalizablePage,AbstractMTreeNode,AbstractNode,AbstractRStarTreeNode,DeLiCluNode,FlatRStarTreeNode,MkAppTreeNode,MkCoPTreeNode,MkMaxTreeNode,MkTabTreeNode,MTreeNode,RdKNNNode,RStarTreeNode
public interface PageDefines the requirements for objects that can be stored in a cache and can be persistently saved.- Since:
- 0.1
- Author:
- Elke Achtert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetPageID()Returns the unique id of this Page.booleanisDirty()Returns true if this page is dirty, false otherwise.voidsetDirty(boolean dirty)Sets the dirty flag of this page.voidsetPageID(int id)Sets the unique id of this Page.
-
-
-
Method Detail
-
getPageID
int getPageID()
Returns the unique id of this Page.- Returns:
- the unique id of this Page. Return -1 for unassigned page numbers.
-
setPageID
void setPageID(int id)
Sets the unique id of this Page.- Parameters:
id- the id 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
-
-