KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > impl > sql > execute > HashLeftOuterJoinResultSet


1 /*
2
3    Derby - Class org.apache.derby.impl.sql.execute.HashLeftOuterJoinResultSet
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;
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 /**
43  * Left outer join using hash join of 2 arbitrary result sets.
44  * Simple subclass of nested loop left outer join, differentiated
45  * to ease RunTimeStatistics output generation.
46  */

47 class HashLeftOuterJoinResultSet extends NestedLoopLeftOuterJoinResultSet
48 {
49     HashLeftOuterJoinResultSet(
50                         NoPutResultSet leftResultSet,
51                         int leftNumCols,
52                         NoPutResultSet rightResultSet,
53                         int rightNumCols,
54                         Activation activation,
55                         GeneratedMethod restriction,
56                         int resultSetNumber,
57                         GeneratedMethod emptyRowFun,
58                         boolean wasRightOuterJoin,
59                         boolean oneRowRightSide,
60                         boolean notExistsRightSide,
61                         double optimizerEstimatedRowCount,
62                         double optimizerEstimatedCost,
63                         String JavaDoc userSuppliedOptimizerOverrides)
64     {
65         super(leftResultSet, leftNumCols, rightResultSet, rightNumCols,
66               activation, restriction, resultSetNumber,
67               emptyRowFun, wasRightOuterJoin,
68               oneRowRightSide, notExistsRightSide,
69               optimizerEstimatedRowCount, optimizerEstimatedCost,
70               userSuppliedOptimizerOverrides);
71     }
72 }
73
Popular Tags