File D:\maven-qcr-plugin-testsunitaires\qcr4java\h2-1.3.170-sources\target\site\qc\lecode\table\PlanItem.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.table;
8
9 import org.h2.index.Index;
10
11 /**
12 * The plan item describes the index to be used, and the estimated cost when
13 * using it.
14 */
15 public class PlanItem {
16
17 /**
18 * The cost.
19 */
20 double cost;
21
22 private Index index;
23 private PlanItem joinPlan;
24 private PlanItem nestedJoinPlan;
25
26 void setIndex(Index index) {
27 this.index = index;
28 }
29
30 public Index getIndex() {
31 return index;
32 }
33
34 PlanItem getJoinPlan() {
35 return joinPlan;
36 }
37
38 PlanItem getNestedJoinPlan() {
39 return nestedJoinPlan;
40 }
41
42 void setJoinPlan(PlanItem joinPlan) {
43 this.joinPlan = joinPlan;
44 }
45
46 void setNestedJoinPlan(PlanItem nestedJoinPlan) {
47 this.nestedJoinPlan = nestedJoinPlan;
48 }
49
50 }
51