01: /*
02:
03: Derby - Class org.apache.derby.impl.sql.execute.rts.RealJoinResultSetStatistics
04:
05: Licensed to the Apache Software Foundation (ASF) under one or more
06: contributor license agreements. See the NOTICE file distributed with
07: this work for additional information regarding copyright ownership.
08: The ASF licenses this file to you under the Apache License, Version 2.0
09: (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;
32: import java.io.ObjectInput;
33: import java.io.IOException;
34:
35: /**
36: ResultSetStatistics implemenation for JoinResultSet.
37:
38: @author jerry
39:
40: */
41: public abstract class RealJoinResultSetStatistics extends
42: RealNoPutResultSetStatistics {
43:
44: /* Leave these fields public for object inspectors */
45: public int rowsSeenLeft;
46: public int rowsSeenRight;
47: public int rowsReturned;
48: public long restrictionTime;
49: public String userSuppliedOptimizerOverrides;
50:
51: // CONSTRUCTORS
52:
53: /**
54: *
55: *
56: */
57: public RealJoinResultSetStatistics(int numOpens, int rowsSeen,
58: int rowsFiltered, long constructorTime, long openTime,
59: long nextTime, long closeTime, int resultSetNumber,
60: int rowsSeenLeft, int rowsSeenRight, int rowsReturned,
61: long restrictionTime, double optimizerEstimatedRowCount,
62: double optimizerEstimatedCost,
63: String userSuppliedOptimizerOverrides) {
64: super (numOpens, rowsSeen, rowsFiltered, constructorTime,
65: openTime, nextTime, closeTime, resultSetNumber,
66: optimizerEstimatedRowCount, optimizerEstimatedCost);
67: this .rowsSeenLeft = rowsSeenLeft;
68: this .rowsSeenRight = rowsSeenRight;
69: this .rowsReturned = rowsReturned;
70: this .restrictionTime = restrictionTime;
71: this .userSuppliedOptimizerOverrides = userSuppliedOptimizerOverrides;
72: }
73:
74: // Class implementation
75: /**
76: * Format for display, a name for this node.
77: *
78: */
79: public String getNodeName() {
80: return MessageService.getTextMessage(SQLState.RTS_JOIN);
81: }
82: }
|