querystats.java

来自「Libgist is an implementation of the Gene」· Java 代码 · 共 95 行

JAVA
95
字号
// QueryStats.java// Copyright (c) 1998, Regents of the University of California// $Id: QueryStats.java,v 1.1 1999/06/21 00:33:20 marcel Exp $///////////////////////////////////////////////////////////////////////////////// QueryStats -// 	combines amdb_wkldprofile::QueryStats and amdb_wkldstats::QueryStats//// Description:///////////////////////////////////////////////////////////////////////////////public class QueryStats{int resultSetLimit; // amdb_wkldprofile::Query.retrLimitStringBuffer qual; // amdb_wkldprofile::Query.resultSetSizeint resultSetSize; // amdb_wkldprofile::Query.resultSetSize// amdb_wkldprofile::QueryStats::LeafStatsfloat avgUtil; // avg. utilint retrievalVol; // size (in bytes) of all retrieved itemsint totalLeafIos; // total # of leaves accessed// amdb_wkldprofile::QueryStats::LeafStatsint totalInternalIos; // total # of internal nodes accessed// amdb_wkldstats::QueryStats::LeafStatsint minIos; // ceil(total volume retrieved / target page capacity)int optimalIos; // # of leaf accesses for optimal clusteringfloat optimalOh; // overhead of optimal clustering w.r.t. theoretical minimumfloat optLeafOh; // overhead of leafIosfloat minLeafOh;float randomIos; // avg. # of leaf accesses for random clusteringfloat randomStdDev; // std. dev. of randomIosfloat optRandomOh; // overhead of randomIosfloat minRandomOh;float optClusterLoss; // loss due to clusteringfloat optClusterOh; // overhead introduced by clusteringfloat minClusterLoss;float minClusterOh;float leafUtilLoss; // loss due to utilizationfloat utilOh; // overhead introduced by utilizationfloat leafExcCovLoss;float excCovOh;// amdb_wkldstats::QueryStats::InternalStatsfloat internalUtilLoss; // loss due to utilizationfloat internalExcCovLoss;QueryStats(){    qual = new StringBuffer();    reset();}voidreset(){    resultSetLimit = 0;    qual.setLength(0);    resultSetSize = 0;    avgUtil = 0.0f;    retrievalVol = 0;    totalLeafIos = 0;    totalInternalIos = 0;    minIos = 0;    optimalIos = 0;    optimalOh = 0.0f;    optLeafOh = 0.0f;    minLeafOh = 0.0f;    randomIos = 0.0f;    randomStdDev = 0.0f;    optRandomOh = 0.0f;    minRandomOh = 0.0f;    optClusterLoss = 0.0f;    optClusterOh = 0.0f;    minClusterLoss = 0.0f;    minClusterOh = 0.0f;    leafUtilLoss = 0.0f;    utilOh = 0.0f;    leafExcCovLoss = 0.0f;    excCovOh = 0.0f;    internalUtilLoss = 0.0f;    internalExcCovLoss = 0.0f;}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?