-
- All Implemented Interfaces:
public final class Index
Wrapper for the results of the getIndexInfo method and represents a Table's indices and statistics. Returned from Table.getIndexes
-
-
Field Summary
Fields Modifier and Type Field Description private final String
catalog
private final String
schema
private final String
tableName
private final String
name
private final Boolean
nonUnique
private final String
indexQualifier
private final IndexType
type
private final Long
cardinality
private final Long
pages
private final String
filterCondition
private final List<IndexColumn>
indexColumns
-
Method Summary
Modifier and Type Method Description final String
getCatalog()
CatalogSource column: TABLE_CAT final String
getSchema()
SchemaSource column: TABLE_SCHEM final String
getTableName()
Table nameSource column: TABLE_NAME final String
getName()
Name, null when type is IndexType.STATISTICSource column: INDEX_NAME final Boolean
getNonUnique()
Non unique, false when type is IndexType.STATISTICSource column: NON_UNIQUE final String
getIndexQualifier()
Index qualifier, null when type is IndexType.STATISTICSource column: INDEX_QUALIFIER final IndexType
getType()
TypeSource column: TYPE final Long
getCardinality()
Cardinality, when type is IndexType.STATISTIC this is the number of rows in the table, otherwise it is the number of unique values in the indexSource column: CARDINALITY final Long
getPages()
Pages, when type is IndexType.STATISTIC this is then number pages used for the table, otherwise it is the number of pages used for the current indexSource column: PAGES final String
getFilterCondition()
Filter conditionSource column: FILTER_CONDITION final List<IndexColumn>
getIndexColumns()
Index columns Boolean
equals(Object other)
Integer
hashCode()
-
-
Method Detail
-
getCatalog
final String getCatalog()
Catalog
Source column: TABLE_CAT
-
getTableName
final String getTableName()
Table name
Source column: TABLE_NAME
-
getName
final String getName()
Name, null when type is IndexType.STATISTIC
Source column: INDEX_NAME
-
getNonUnique
final Boolean getNonUnique()
Non unique, false when type is IndexType.STATISTIC
Source column: NON_UNIQUE
-
getIndexQualifier
final String getIndexQualifier()
Index qualifier, null when type is IndexType.STATISTIC
Source column: INDEX_QUALIFIER
-
getCardinality
final Long getCardinality()
Cardinality, when type is IndexType.STATISTIC this is the number of rows in the table, otherwise it is the number of unique values in the index
Source column: CARDINALITY
-
getPages
final Long getPages()
Pages, when type is IndexType.STATISTIC this is then number pages used for the table, otherwise it is the number of pages used for the current index
Source column: PAGES
-
getFilterCondition
final String getFilterCondition()
Filter condition
Source column: FILTER_CONDITION
-
getIndexColumns
final List<IndexColumn> getIndexColumns()
Index columns
-
-
-
-