/*
* Copyright 2004-2018 H2 Group. Multiple-Licensed under the MPL 2.0,
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package org.h2.index;
/**
* A page store index.
*/
public abstract class
PageIndex extends
BaseIndex {
/**
* The root page of this index.
*/
protected int
rootPageId;
private boolean
sortedInsertMode;
/**
* Get the root page of this index.
*
* @return the root page id
*/
public int
getRootPageId() {
return
rootPageId;
}
/**
* Write back the row count if it has changed.
*/
public abstract void
writeRowCount();
@
Override
public void
setSortedInsertMode(boolean
sortedInsertMode) {
this.
sortedInsertMode =
sortedInsertMode;
}
boolean
isSortedInsertMode() {
return
sortedInsertMode;
}
}