KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2
3    Derby - Class org.apache.derby.impl.sql.execute.rts.RealHashJoinStatistics
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.i18n.MessageService;
25 import org.apache.derby.iapi.reference.SQLState;
26
27 /**
28   ResultSetStatistics implemenation for HashJoinResultSet.
29
30   @author jerry
31
32 */

33 public class RealHashJoinStatistics
34     extends RealNestedLoopJoinStatistics
35 {
36
37     // CONSTRUCTORS
38

39     /**
40      *
41      *
42      */

43     public RealHashJoinStatistics(
44                                 int numOpens,
45                                 int rowsSeen,
46                                 int rowsFiltered,
47                                 long constructorTime,
48                                 long openTime,
49                                 long nextTime,
50                                 long closeTime,
51                                 int resultSetNumber,
52                                 int rowsSeenLeft,
53                                 int rowsSeenRight,
54                                 int rowsReturned,
55                                 long restrictionTime,
56                                 boolean oneRowRightSide,
57                                 double optimizerEstimatedRowCount,
58                                 double optimizerEstimatedCost,
59                                 String JavaDoc userSuppliedOptimizerOverrides,
60                                 ResultSetStatistics leftResultSetStatistics,
61                                 ResultSetStatistics rightResultSetStatistics
62                                 )
63     {
64         super(
65             numOpens,
66             rowsSeen,
67             rowsFiltered,
68             constructorTime,
69             openTime,
70             nextTime,
71             closeTime,
72             resultSetNumber,
73             rowsSeenLeft,
74             rowsSeenRight,
75             rowsReturned,
76             restrictionTime,
77             oneRowRightSide,
78             optimizerEstimatedRowCount,
79             optimizerEstimatedCost,
80             userSuppliedOptimizerOverrides,
81             leftResultSetStatistics,
82             rightResultSetStatistics
83             );
84     }
85
86     // ResultSetStatistics methods
87

88
89
90     // Class implementation
91

92     protected void setNames()
93     {
94         if (oneRowRightSide)
95         {
96             nodeName = MessageService.getTextMessage(
97                                                 SQLState.RTS_HASH_EXISTS_JOIN);
98             resultSetName = MessageService.getTextMessage(
99                                             SQLState.RTS_HASH_EXISTS_JOIN_RS);
100         }
101         else
102         {
103             nodeName = MessageService.getTextMessage(
104                                                 SQLState.RTS_HASH_JOIN);
105             resultSetName = MessageService.getTextMessage(
106                                             SQLState.RTS_HASH_JOIN_RS);
107         }
108     }
109 }
110
Popular Tags