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) |
| 限定符和类型 | 方法和说明 |
|---|---|
static TiIndexInfo |
generateFakePrimaryKeyIndex(TiTableInfo table) |
String |
getComment() |
long |
getId() |
List<TiIndexColumn> |
getIndexColumns() |
long |
getIndexColumnSize() |
IndexType |
getIndexType() |
String |
getName() |
SchemaState |
getSchemaState() |
String |
getTableName() |
boolean |
isFakePrimaryKey() |
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)
public static TiIndexInfo generateFakePrimaryKeyIndex(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()
Copyright © 2023 PingCAP. All rights reserved.