KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dql > plan > table > _IndexPredicateInterface


1 package com.daffodilwoods.daffodildb.server.sql99.dql.plan.table;
2
3 import com.daffodilwoods.daffodildb.server.sql99.dql.iterator._Iterator;
4 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.*;
5 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.predicates.predicate;
6 import com.daffodilwoods.daffodildb.server.datasystem.indexsystem.*;
7 import com.daffodilwoods.database.general.*;
8 import com.daffodilwoods.database.resource.*;
9 import com.daffodilwoods.database.sqlinitiator.*;
10
11 /**
12  * It represents the final plan of single table condition which is executable.
13  * Different predicates present on table results in to this plan.
14  * <p>Title: </p>
15  * <p>Description: </p>
16  * <p>Copyright: Copyright (c) 2003</p>
17  * <p>Company: </p>
18  * @author unascribed
19  * @version 1.0
20  */

21
22 public interface _IndexPredicateInterface {
23
24    /**
25     * Returns the cost of condition from which it is obtained.
26     * @return cost
27     * @throws DException
28     */

29
30    public double getCost() throws DException ;
31
32    /**
33     * It is required in formation of final plan.
34     * @param session
35     * @return cost
36     * @throws DException
37     */

38
39    public double getCost(Object JavaDoc session) throws DException ;
40
41    /**
42     * It allows user to get the optimal resultset on the condition from which it
43     * is obtained.
44     * @param session
45     * @return Iterator
46     * @throws DException
47     */

48
49    public _Iterator execute(Object JavaDoc session) throws DException ;
50
51    /**
52     * Returns the estimate number of rows which are returned after applying
53     * condition on the table.
54     * @return
55     * @throws DException
56     */

57
58    public double getEstimatedRow() throws DException ;
59
60    /**
61     * Sets the order. It is required if order is present on table and that order
62     * is not satisfied by the index which is used to solve the condition.
63     * @param order
64     * @throws DException
65     */

66
67    public void setOrder(_Order order) throws DException ;
68
69    /**
70     * Returns the order.
71     * @return
72     * @throws DException
73     */

74
75    public _Order getOrder() throws DException ;
76 }
77
Popular Tags