KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > impl > sql > execute > rts > RealJoinResultSetStatistics


1 /*
2
3    Derby - Class org.apache.derby.impl.sql.execute.rts.RealJoinResultSetStatistics
4
5    Licensed to the Apache Software Foundation (ASF) under one or more
6    contributor license agreements. See the NOTICE file distributed with
7    this work for additional information regarding copyright ownership.
8    The ASF licenses this file to you under the Apache License, Version 2.0
9    (the "License"); you may not use this file except in compliance with
10    the License. You may obtain a copy of the License at
11
12       http://www.apache.org/licenses/LICENSE-2.0
13
14    Unless required by applicable law or agreed to in writing, software
15    distributed under the License is distributed on an "AS IS" BASIS,
16    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17    See the License for the specific language governing permissions and
18    limitations under the License.
19
20  */

21
22 package org.apache.derby.impl.sql.execute.rts;
23
24 import org.apache.derby.iapi.services.io.StoredFormatIds;
25
26 import org.apache.derby.iapi.services.i18n.MessageService;
27 import org.apache.derby.iapi.reference.SQLState;
28
29 import org.apache.derby.iapi.services.io.FormatableHashtable;
30
31 import java.io.ObjectOutput JavaDoc;
32 import java.io.ObjectInput JavaDoc;
33 import java.io.IOException JavaDoc;
34
35 /**
36   ResultSetStatistics implemenation for JoinResultSet.
37
38   @author jerry
39
40 */

41 public abstract class RealJoinResultSetStatistics
42     extends RealNoPutResultSetStatistics
43 {
44
45     /* Leave these fields public for object inspectors */
46     public int rowsSeenLeft;
47     public int rowsSeenRight;
48     public int rowsReturned;
49     public long restrictionTime;
50     public String JavaDoc userSuppliedOptimizerOverrides;
51
52
53     // CONSTRUCTORS
54

55     /**
56      *
57      *
58      */

59     public RealJoinResultSetStatistics(
60                                         int numOpens,
61                                         int rowsSeen,
62                                         int rowsFiltered,
63                                         long constructorTime,
64                                         long openTime,
65                                         long nextTime,
66                                         long closeTime,
67                                         int resultSetNumber,
68                                         int rowsSeenLeft,
69                                         int rowsSeenRight,
70                                         int rowsReturned,
71                                         long restrictionTime,
72                                         double optimizerEstimatedRowCount,
73                                         double optimizerEstimatedCost,
74                                         String JavaDoc userSuppliedOptimizerOverrides
75                                         )
76     {
77         super(
78             numOpens,
79             rowsSeen,
80             rowsFiltered,
81             constructorTime,
82             openTime,
83             nextTime,
84             closeTime,
85             resultSetNumber,
86             optimizerEstimatedRowCount,
87             optimizerEstimatedCost
88             );
89         this.rowsSeenLeft = rowsSeenLeft;
90         this.rowsSeenRight = rowsSeenRight;
91         this.rowsReturned = rowsReturned;
92         this.restrictionTime = restrictionTime;
93         this.userSuppliedOptimizerOverrides = userSuppliedOptimizerOverrides;
94     }
95
96  
97     // Class implementation
98
/**
99    * Format for display, a name for this node.
100      *
101      */

102   public String JavaDoc getNodeName(){
103     return MessageService.getTextMessage(SQLState.RTS_JOIN);
104   }
105 }
106
Popular Tags