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 | */ |
6 | package org.h2.mvstore; |
7 | |
8 | /** |
9 | * A position in a cursor |
10 | */ |
11 | public class CursorPos { |
12 | |
13 | /** |
14 | * The current page. |
15 | */ |
16 | public Page page; |
17 | |
18 | /** |
19 | * The current index. |
20 | */ |
21 | public int index; |
22 | |
23 | /** |
24 | * The position in the parent page, if any. |
25 | */ |
26 | public final CursorPos parent; |
27 | |
28 | public CursorPos(Page page, int index, CursorPos parent) { |
29 | this.page = page; |
30 | this.index = index; |
31 | this.parent = parent; |
32 | } |
33 | |
34 | } |
35 | |