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.table;
07:
08: import org.h2.index.Index;
09:
10: /**
11: * The plan item describes the index to be used, and the estimated cost when
12: * using it.
13: */
14: public class PlanItem {
15: public double cost;
16: private Index index;
17: private PlanItem joinPlan;
18:
19: public void setIndex(Index index) {
20: this .index = index;
21: }
22:
23: public Index getIndex() {
24: return index;
25: }
26:
27: public PlanItem getJoinPlan() {
28: return joinPlan;
29: }
30:
31: public void setJoinPlan(PlanItem joinPlan) {
32: this.joinPlan = joinPlan;
33: }
34:
35: }
|