01: /*
02:
03: Derby - Class org.apache.derby.impl.sql.execute.HashLeftOuterJoinResultSet
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: * Left outer join using hash join of 2 arbitrary result sets.
43: * Simple subclass of nested loop left outer join, differentiated
44: * to ease RunTimeStatistics output generation.
45: */
46: class HashLeftOuterJoinResultSet extends
47: NestedLoopLeftOuterJoinResultSet {
48: HashLeftOuterJoinResultSet(NoPutResultSet leftResultSet,
49: int leftNumCols, NoPutResultSet rightResultSet,
50: int rightNumCols, Activation activation,
51: GeneratedMethod restriction, int resultSetNumber,
52: GeneratedMethod emptyRowFun, boolean wasRightOuterJoin,
53: boolean oneRowRightSide, boolean notExistsRightSide,
54: double optimizerEstimatedRowCount,
55: double optimizerEstimatedCost,
56: String userSuppliedOptimizerOverrides) {
57: super(leftResultSet, leftNumCols, rightResultSet, rightNumCols,
58: activation, restriction, resultSetNumber, emptyRowFun,
59: wasRightOuterJoin, oneRowRightSide, notExistsRightSide,
60: optimizerEstimatedRowCount, optimizerEstimatedCost,
61: userSuppliedOptimizerOverrides);
62: }
63: }
|