--- /dev/null
+/*\r
+\r
+ Derby - Class org.apache.derby.impl.sql.compile.Level2CostEstimateImpl\r
+\r
+ Licensed to the Apache Software Foundation (ASF) under one or more\r
+ contributor license agreements. See the NOTICE file distributed with\r
+ this work for additional information regarding copyright ownership.\r
+ The ASF licenses this file to you under the Apache License, Version 2.0\r
+ (the "License"); you may not use this file except in compliance with\r
+ the License. You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+\r
+ */\r
+\r
+package org.apache.derby.impl.sql.compile;\r
+\r
+import org.apache.derby.iapi.sql.compile.CostEstimate;\r
+\r
+import org.apache.derby.iapi.store.access.StoreCostResult;\r
+\r
+import org.apache.derby.iapi.services.sanity.SanityManager;\r
+\r
+import org.apache.derby.impl.sql.compile.CostEstimateImpl;\r
+\r
+public class Level2CostEstimateImpl extends CostEstimateImpl \r
+{\r
+ public Level2CostEstimateImpl() \r
+ {\r
+ }\r
+\r
+ public Level2CostEstimateImpl(double theCost,\r
+ double theRowCount,\r
+ double theSingleScanRowCount) \r
+ {\r
+ super(theCost, theRowCount, theSingleScanRowCount);\r
+ }\r
+\r
+ /** @see CostEstimate#cloneMe */\r
+ public CostEstimate cloneMe() \r
+ {\r
+ return new Level2CostEstimateImpl(cost,\r
+ rowCount,\r
+ singleScanRowCount);\r
+ }\r
+\r
+ public String toString() \r
+ {\r
+ return "Level2CostEstimateImpl: at " + hashCode() + ", cost == " + cost +\r
+ ", rowCount == " + rowCount + \r
+ ", singleScanRowCount == " + singleScanRowCount;\r
+ }\r
+\r
+ public CostEstimateImpl setState(double theCost,\r
+ double theRowCount,\r
+ CostEstimateImpl retval) \r
+ {\r
+ if (retval == null) \r
+ {\r
+ retval = new Level2CostEstimateImpl();\r
+ }\r
+\r
+ return super.setState(theCost, theRowCount, retval);\r
+ }\r
+}\r