01: /*
02: * Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
03: * (http://h2database.com/html/license.html).
04: * Initial Developer: H2 Group
05: */
06: package org.h2.index;
07:
08: import org.h2.result.Row;
09:
10: /**
11: * Represents a index node of a tree index.
12: */
13: public class TreeNode {
14: int balance;
15: TreeNode left, right, parent;
16: Row row;
17:
18: TreeNode(Row row) {
19: this .row = row;
20: }
21:
22: boolean isFromLeft() {
23: return parent == null || parent.left == this;
24: }
25:
26: }
|