| 构造器和说明 |
|---|
UpdateSearchIndexRequest(String tableName,
String indexName) |
UpdateSearchIndexRequest(String tableName,
String indexName,
List<QueryFlowWeight> queryFlowWeight)
Set the query traffic weight
|
UpdateSearchIndexRequest(String tableName,
String indexName,
String switchIndexName)
Index switch request constructor
In the scenario of dynamically modifying the schema, when the index rebuilding synchronization catches up with the source index and the A/B test has been fully verified, the "index switch" can be performed. |
| 限定符和类型 | 方法和说明 |
|---|---|
List<FieldSchema> |
getAddedFieldSchemas() |
String |
getIndexName() |
String |
getOperationName() |
List<QueryFlowWeight> |
getQueryFlowWeight() |
String |
getSwitchIndexName() |
String |
getTableName() |
Integer |
getTimeToLive() |
UpdateSearchIndexRequest |
setAddedFieldSchemas(List<FieldSchema> addedFieldSchemas) |
UpdateSearchIndexRequest |
setIndexName(String indexName) |
UpdateSearchIndexRequest |
setQueryFlowWeight(List<QueryFlowWeight> queryFlowWeight) |
UpdateSearchIndexRequest |
setSwitchIndexName(String switchIndexName) |
UpdateSearchIndexRequest |
setTableName(String tableName) |
UpdateSearchIndexRequest |
setTimeToLive(int timeToLive,
TimeUnit timeUnit)
TTL time for index data.
|
UpdateSearchIndexRequest |
setTimeToLiveInDays(int days)
TTL time for index data
|
public UpdateSearchIndexRequest(String tableName, String indexName, String switchIndexName)
tableName - Table nameindexName - Index nameswitchIndexName - The index name to be switchedpublic UpdateSearchIndexRequest(String tableName, String indexName, List<QueryFlowWeight> queryFlowWeight)
tableName - Table nameindexName - Index namequeryFlowWeight - Query traffic weight list. Sets the traffic distribution weight for querying the "source index" and "rebuilding index", the list length is 2.
e.g., setting the weights to [(index1, 20), (index2, 80)] means that 20% of the query traffic will go to index1, and 80% of the query traffic will go to index2.public String getTableName()
public UpdateSearchIndexRequest setTableName(String tableName)
public String getIndexName()
public UpdateSearchIndexRequest setIndexName(String indexName)
public String getSwitchIndexName()
public UpdateSearchIndexRequest setSwitchIndexName(String switchIndexName)
public List<QueryFlowWeight> getQueryFlowWeight()
public UpdateSearchIndexRequest setQueryFlowWeight(List<QueryFlowWeight> queryFlowWeight)
public Integer getTimeToLive()
public UpdateSearchIndexRequest setTimeToLiveInDays(int days)
TTL time for index data
days - ttl, parameter unit is daypublic UpdateSearchIndexRequest setTimeToLive(int timeToLive, TimeUnit timeUnit)
TTL time for index data.
public List<FieldSchema> getAddedFieldSchemas()
public UpdateSearchIndexRequest setAddedFieldSchemas(List<FieldSchema> addedFieldSchemas)
public String getOperationName()
getOperationName 在接口中 RequestCopyright © 2025. All Rights Reserved.