01: /*
02:
03: Derby - Class org.apache.derby.impl.sql.execute.HashJoinResultSet
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;
23:
24: import org.apache.derby.iapi.services.monitor.Monitor;
25:
26: import org.apache.derby.iapi.services.sanity.SanityManager;
27:
28: import org.apache.derby.iapi.services.stream.HeaderPrintWriter;
29: import org.apache.derby.iapi.services.stream.InfoStreams;
30:
31: import org.apache.derby.iapi.error.StandardException;
32: import org.apache.derby.iapi.sql.Activation;
33: import org.apache.derby.iapi.sql.ResultSet;
34: import org.apache.derby.iapi.types.DataValueDescriptor;
35:
36: import org.apache.derby.iapi.sql.execute.ExecutionContext;
37: import org.apache.derby.iapi.sql.execute.NoPutResultSet;
38:
39: import org.apache.derby.iapi.services.loader.GeneratedMethod;
40:
41: /**
42: * Hash join of 2 arbitrary result sets.
43: * Simple subclass of nested loop, differentiated
44: * to ease RunTimeStatistics output generation.
45: */
46: class HashJoinResultSet extends NestedLoopJoinResultSet {
47: HashJoinResultSet(NoPutResultSet leftResultSet, int leftNumCols,
48: NoPutResultSet rightResultSet, int rightNumCols,
49: Activation activation, GeneratedMethod restriction,
50: int resultSetNumber, boolean oneRowRightSide,
51: boolean notExistsRightSide,
52: double optimizerEstimatedRowCount,
53: double optimizerEstimatedCost,
54: String userSuppliedOptimizerOverrides) {
55: super(leftResultSet, leftNumCols, rightResultSet, rightNumCols,
56: activation, restriction, resultSetNumber,
57: oneRowRightSide, notExistsRightSide,
58: optimizerEstimatedRowCount, optimizerEstimatedCost,
59: userSuppliedOptimizerOverrides);
60: }
61: }
|