public static final class IndexStatsUtil.IdxStats
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
long |
card
Cardinality of the index.
|
java.sql.Timestamp |
created |
java.lang.String |
id |
java.lang.String |
indexId |
java.lang.String |
indexName |
int |
lcols
Number of leading columns (in the index) for this stats object.
|
private static java.lang.String |
NA |
long |
rows
Number of rows in the table / index.
|
java.lang.String |
tableId |
java.lang.String |
tableName |
Constructor and Description |
---|
IdxStats(java.lang.String id,
java.lang.String indexId,
java.lang.String indexName,
java.lang.String tableId,
java.lang.String tableName,
java.sql.Timestamp created,
int lcols,
java.lang.String stats)
Creates a new statistics object with names for the table and the
index specified for convenience.
|
Modifier and Type | Method and Description |
---|---|
boolean |
after(IndexStatsUtil.IdxStats other) |
boolean |
before(IndexStatsUtil.IdxStats other) |
boolean |
equals(java.lang.Object obj)
Equality is based on the statistics entry UUID.
|
int |
hashCode() |
java.lang.String |
toString() |
private static final java.lang.String NA
public final long rows
public final long card
public final int lcols
public final java.lang.String id
public final java.lang.String tableId
public final java.lang.String tableName
public final java.lang.String indexId
public final java.lang.String indexName
public final java.sql.Timestamp created
public IdxStats(java.lang.String id, java.lang.String indexId, java.lang.String indexName, java.lang.String tableId, java.lang.String tableName, java.sql.Timestamp created, int lcols, java.lang.String stats)
id
- statistics identifierindexId
- index identifierindexName
- index name (may be null
)tableId
- table identifiertableName
- table name (may be null
)created
- creation timestamplcols
- number of leading columnsstats
- the statistics, as reported when doing getString
on the column STATISTICS
in SYS.SYSSTATISTICS
(number of unique rows and total rows, for instance
"numunique= 3 numrows= 3")public boolean after(IndexStatsUtil.IdxStats other)
public boolean before(IndexStatsUtil.IdxStats other)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- other objecttrue
if the other object is considered equal to thispublic int hashCode()
hashCode
in class java.lang.Object
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.