File D:\maven-qcr-plugin-testsunitaires\qcr4java\h2-1.3.170-sources\target\site\qc\lecode\index\PageIndex.java.html

1 /*
2 * Copyright 2004-2011 H2 Group. Multiple-Licensed under the H2 License,
3 * Version 1.0, and under the Eclipse Public License, Version 1.0
4 * (http://h2database.com/html/license.html).
5 * Initial Developer: H2 Group
6 */
7 package org.h2.index;
8
9
10 /**
11 * A page store index.
12 */
13 public abstract class PageIndex extends BaseIndex {
14
15 /**
16 * The root page of this index.
17 */
18 protected int rootPageId;
19
20 private boolean sortedInsertMode;
21
22 /**
23 * Get the root page of this index.
24 *
25 * @return the root page id
26 */
27 public int getRootPageId() {
28 return rootPageId;
29 }
30
31 /**
32 * Write back the row count if it has changed.
33 */
34 public abstract void writeRowCount();
35
36 public void setSortedInsertMode(boolean sortedInsertMode) {
37 this.sortedInsertMode = sortedInsertMode;
38 }
39
40 boolean isSortedInsertMode() {
41 return sortedInsertMode;
42 }
43
44 }
45