public class IndexMeta extends Object implements Jsonizable
| 构造器和说明 |
|---|
IndexMeta(String indexName)
Create a new
IndexMeta instance with the given index table name. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addDefinedColumn(String name)
Add a predefined column.
|
void |
addPrimaryKeyColumn(String name)
Add a primary key column.
|
List<String> |
getDefinedColumnsList()
Returns a read-only list containing all predefined column names.
|
String |
getIndexName()
Returns the name of the index table.
|
SyncStat.SyncPhase |
getIndexSyncPhase()
Get the index table synchronization phase
|
IndexType |
getIndexType()
Get the index table type
|
IndexUpdateMode |
getIndexUpdateMode()
Get the index table update mode.
|
List<String> |
getPrimaryKeyList()
Returns a read-only list containing the names of all primary key columns.
|
String |
jsonize() |
void |
jsonize(StringBuilder sb,
String newline) |
void |
setIndexName(String indexName)
Set the name of the index table.
|
void |
setIndexSyncPhase(SyncStat.SyncPhase indexSyncPhase)
Set the index table sync phase
|
void |
setIndexType(IndexType type)
Set the index table type
|
void |
setIndexUpdateMode(IndexUpdateMode indexUpdateMode)
Set the index table update mode
|
String |
toString() |
public IndexMeta(String indexName)
IndexMeta instance with the given index table name.indexName - The name of the index table.public String getIndexName()
public void setIndexName(String indexName)
indexName - The name of the index table.public List<String> getPrimaryKeyList()
public void addPrimaryKeyColumn(String name)
The order of primary keys in the final index table will be the same as the order in which the user adds the primary keys.
name - The name of the primary key column.public List<String> getDefinedColumnsList()
public void addDefinedColumn(String name)
name - The name of the predefined column.public IndexType getIndexType()
public void setIndexType(IndexType type)
type - The index table type (currently only GLOBAL_INDEX is supported)public IndexUpdateMode getIndexUpdateMode()
public void setIndexUpdateMode(IndexUpdateMode indexUpdateMode)
indexUpdateMode - (currently only ASYNC_INDEX is supported)public SyncStat.SyncPhase getIndexSyncPhase()
public void setIndexSyncPhase(SyncStat.SyncPhase indexSyncPhase)
indexSyncPhase - the sync phase of the index tablepublic String jsonize()
jsonize 在接口中 Jsonizablepublic void jsonize(StringBuilder sb, String newline)
jsonize 在接口中 JsonizableCopyright © 2025. All Rights Reserved.