You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by kr...@apache.org on 2010/12/06 08:40:08 UTC
svn commit: r1042537 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/IndexStatsUtil.java
Author: kristwaa
Date: Mon Dec 6 07:40:08 2010
New Revision: 1042537
URL: http://svn.apache.org/viewvc?rev=1042537&view=rev
Log:
DERBY-4834: Add helper class for working with index statistics in JUnit tests
Added number of leading columns to the toString output. Needed to easily
differentiate between the statistics objects for multi-column indexes when
dumping stats.
Patch file: derby-4834-4a-toString_leading_cols.diff
Modified:
db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/IndexStatsUtil.java
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/IndexStatsUtil.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/IndexStatsUtil.java?rev=1042537&r1=1042536&r2=1042537&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/IndexStatsUtil.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/IndexStatsUtil.java Mon Dec 6 07:40:08 2010
@@ -506,6 +506,7 @@ public class IndexStatsUtil {
sb.append("{tableId=").append(tableId).
append(", tableName=").append(tableName).
append(", indexName=").append(indexName).
+ append(", lcols=").append(lcols).
append(", rows=").append(rows).
append(", unique/card=").append(card).
append(", created=").append(created).append('}');