public class TiIndexInfo extends Object implements Serializable
| 构造器和说明 |
|---|
TiIndexInfo(long id,
CIStr name,
CIStr tableName,
List<TiIndexColumn> indexColumns,
boolean isUnique,
boolean isPrimary,
int schemaState,
String comment,
int indexType,
boolean isFakePrimaryKey,
boolean isInvisible) |
| 限定符和类型 | 方法和说明 |
|---|---|
static TiIndexInfo |
genClusterIndex(TiTableInfo table) |
String |
getComment() |
long |
getId() |
List<TiIndexColumn> |
getIndexColumns() |
long |
getIndexColumnSize() |
IndexType |
getIndexType() |
String |
getName() |
SchemaState |
getSchemaState() |
String |
getTableName() |
boolean |
isFakePrimaryKey() |
boolean |
isInvisible() |
boolean |
isPrimary() |
boolean |
isUnique() |
IndexInfo |
toProto(TiTableInfo tableInfo) |
String |
toString() |
public TiIndexInfo(long id,
CIStr name,
CIStr tableName,
List<TiIndexColumn> indexColumns,
boolean isUnique,
boolean isPrimary,
int schemaState,
String comment,
int indexType,
boolean isFakePrimaryKey,
boolean isInvisible)
public static TiIndexInfo genClusterIndex(TiTableInfo table)
public long getIndexColumnSize()
public long getId()
public String getName()
public String getTableName()
public List<TiIndexColumn> getIndexColumns()
public boolean isUnique()
public boolean isPrimary()
public SchemaState getSchemaState()
public String getComment()
public IndexType getIndexType()
public IndexInfo toProto(TiTableInfo tableInfo)
public boolean isFakePrimaryKey()
public boolean isInvisible()
Copyright © 2023 PingCAP. All rights reserved.