--- /dev/null
+/*\r
+\r
+ Derby - Class org.apache.derby.impl.sql.execute.rts.RealCurrentOfStatistics\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.execute.rts;\r
+\r
+import org.apache.derby.iapi.services.io.StoredFormatIds;\r
+\r
+import org.apache.derby.iapi.services.i18n.MessageService;\r
+import org.apache.derby.iapi.reference.SQLState;\r
+import java.io.ObjectOutput;\r
+import java.io.ObjectInput;\r
+import java.io.IOException;\r
+\r
+/**\r
+ ResultSetStatistics implemenation for CurrentOfResultSet.\r
+\r
+\r
+*/\r
+public class RealCurrentOfStatistics \r
+ extends RealNoPutResultSetStatistics\r
+{\r
+\r
+ /* Leave these fields public for object inspectors */\r
+\r
+ // CONSTRUCTORS\r
+\r
+ /**\r
+ * \r
+ *\r
+ */\r
+ public RealCurrentOfStatistics(\r
+ int numOpens,\r
+ int rowsSeen,\r
+ int rowsFiltered,\r
+ long constructorTime,\r
+ long openTime,\r
+ long nextTime,\r
+ long closeTime,\r
+ int resultSetNumber\r
+ )\r
+ {\r
+ super(\r
+ numOpens,\r
+ rowsSeen,\r
+ rowsFiltered,\r
+ constructorTime,\r
+ openTime,\r
+ nextTime,\r
+ closeTime,\r
+ resultSetNumber,\r
+ 0.0d,\r
+ 0.0d\r
+ );\r
+ }\r
+\r
+ // ResultSetStatistics interface\r
+\r
+ /**\r
+ * Return the statement execution plan as a String.\r
+ *\r
+ * @param depth Indentation level.\r
+ *\r
+ * @return String The statement execution plan as a String.\r
+ */\r
+ public String getStatementExecutionPlanText(int depth)\r
+ {\r
+ initFormatInfo(depth);\r
+\r
+ return indent + \r
+ MessageService.getTextMessage(SQLState.RTS_NOT_IMPL,\r
+ "getStatementExecutionPlanText", "CurrentOfResultSet\n");\r
+ \r
+ }\r
+\r
+ /**\r
+ * Return information on the scan nodes from the statement execution \r
+ * plan as a String.\r
+ *\r
+ * @param depth Indentation level.\r
+ *\r
+ * @return String The information on the scan nodes from the \r
+ * statement execution plan as a String.\r
+ */\r
+ public String getScanStatisticsText(String tableName, int depth)\r
+ {\r
+ return indent + \r
+ MessageService.getTextMessage(SQLState.RTS_NOT_IMPL,\r
+ "getScanStatisticsText", "CurrentOfResultSet\n");\r
+ }\r
+\r
+ // Class implementation\r
+ \r
+ public String toString()\r
+ {\r
+ return getStatementExecutionPlanText(0);\r
+ }\r
+ /**\r
+ * Format for display, a name for this node.\r
+ *\r
+ */\r
+ public String getNodeName(){\r
+ // NOTE: Not internationalizing because "CURRENT OF" are keywords.\r
+ return "Current Of";\r
+ }\r
+}\r