KickJava   Java API By Example, From Geeks To Geeks.

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


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

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