public class TiIndexInfo extends Object implements Serializable
Constructor and Description |
---|
TiIndexInfo(long id,
CIStr name,
CIStr tableName,
List<TiIndexColumn> indexColumns,
boolean isUnique,
boolean isPrimary,
int schemaState,
String comment,
int indexType,
boolean isFakePrimaryKey) |
Modifier and Type | Method and Description |
---|---|
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 © 2024 PingCAP. All rights reserved.