public class IndexMeta extends Object implements Jsonizable
限定符和类型 | 方法和说明 |
---|---|
void |
addDefinedColumn(String name)
添加一个预定义列。
|
void |
addPrimaryKeyColumn(String name)
添加一个主键列。
|
List<String> |
getDefinedColumnsList()
返回包含所有预定义列名字的只读列表。
|
String |
getIndexName()
返回索引表的名称。
|
IndexType |
getIndexType()
得到索引表类型
|
IndexUpdateMode |
getIndexUpdateMode()
得到索引表更新模式
|
List<String> |
getPrimaryKeyList()
返回包含所有主键列名字的只读列表。
|
String |
jsonize() |
void |
jsonize(StringBuilder sb,
String newline) |
void |
setIndexName(String indexName)
设置索引表的名称。
|
void |
setIndexType(IndexType type)
设置索引表类型
|
void |
setIndexUpdateMode(IndexUpdateMode indexUpdateMode)
设置索引表更新模式
|
String |
toString() |
public IndexMeta(String indexName)
IndexMeta
实例。indexName
- 索引表名。public String getIndexName()
public void setIndexName(String indexName)
indexName
- 索引表的名称。public void addPrimaryKeyColumn(String name)
最终创建的索引表中主键的顺序与用户添加主键的顺序相同。
name
- 主键列的名称。public List<String> getDefinedColumnsList()
public void addDefinedColumn(String name)
name
- 预定义列的名称。public IndexType getIndexType()
public void setIndexType(IndexType type)
type
- 索引表类型(当前只支持GLOBAL_INDEX)public IndexUpdateMode getIndexUpdateMode()
public void setIndexUpdateMode(IndexUpdateMode indexUpdateMode)
indexUpdateMode
- (当前只支持ASYNC_INDEX)public String jsonize()
jsonize
在接口中 Jsonizable
public void jsonize(StringBuilder sb, String newline)
jsonize
在接口中 Jsonizable
Copyright © 2019. All Rights Reserved.