EMMA Coverage Report (generated Sun Mar 01 22:06:14 CET 2015)
[all classes][org.h2.index]

COVERAGE SUMMARY FOR SOURCE FILE [PageIndex.java]

nameclass, %method, %block, %line, %
PageIndex.java100% (1/1)50%  (2/4)46%  (6/13)40%  (2/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PageIndex100% (1/1)50%  (2/4)46%  (6/13)40%  (2/5)
isSortedInsertMode (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
setSortedInsertMode (boolean): void 0%   (0/1)0%   (0/4)0%   (0/2)
PageIndex (): void 100% (1/1)100% (3/3)100% (1/1)
getRootPageId (): int 100% (1/1)100% (3/3)100% (1/1)

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

[all classes][org.h2.index]
EMMA 2.0.5312 (C) Vladimir Roubtsov