/*

   Derby - Class org.apache.derby.iapi.sql.execute.ResultSetStatistics

   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to you under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

 */

package org.apache.derby.iapi.sql.execute;

import org.apache.derby.iapi.sql.execute.xplain.XPLAINable;

/**
 * The ResultSetStatistics interface is used to provide run time
 * statistics information on a specific ResultSet.
 * 

* This interface extends Formatable so that all objects which implement * this interface can be easily saved to the database. * */ public interface ResultSetStatistics extends XPLAINable { /** * Return the statement execution plan as a String. * * @param depth Indentation level. * * @return String The statement execution plan as a String. */ public String getStatementExecutionPlanText(int depth); /** * Return information on the scan nodes from the statement execution * plan as a String. * * @param depth Indentation level. * @param tableName if not NULL then return information for this table only * @return String The information on the scan nodes from the * statement execution plan as a String. */ public String getScanStatisticsText(String tableName, int depth); /** * Get the estimated row count for the number of rows returned * by the associated query or statement. * * @return The estimated number of rows returned by the associated * query or statement. */ public double getEstimatedRowCount(); }

Ads help maintain this website.