| Constructor and Description |
|---|
UpdateSearchIndexRequest(String tableName,
String indexName) |
UpdateSearchIndexRequest(String tableName,
String indexName,
List<QueryFlowWeight> queryFlowWeight)
设置查询流量权重
|
UpdateSearchIndexRequest(String tableName,
String indexName,
String switchIndexName)
索引交换请求 构造方法
在动态修改schema的场景下,当重建索引同步追上源索引,且AB test充分验证后,才能"交换索引"。交换后,所有的查询流量都会打到新schema的索引上。 |
| Modifier and Type | Method and Description |
|---|---|
String |
getIndexName() |
String |
getOperationName() |
List<QueryFlowWeight> |
getQueryFlowWeight() |
String |
getSwitchIndexName() |
String |
getTableName() |
Integer |
getTimeToLive() |
UpdateSearchIndexRequest |
setIndexName(String indexName) |
UpdateSearchIndexRequest |
setQueryFlowWeight(List<QueryFlowWeight> queryFlowWeight) |
UpdateSearchIndexRequest |
setSwitchIndexName(String switchIndexName) |
UpdateSearchIndexRequest |
setTableName(String tableName) |
UpdateSearchIndexRequest |
setTimeToLive(int timeToLive,
TimeUnit timeUnit)
索引数据的TTL时间。
|
UpdateSearchIndexRequest |
setTimeToLiveInDays(int days)
索引数据的TTL时间
|
public UpdateSearchIndexRequest(String tableName, String indexName, String switchIndexName)
tableName - 表名indexName - 索引名switchIndexName - the index to be switched 被交换索引名public UpdateSearchIndexRequest(String tableName, String indexName, List<QueryFlowWeight> queryFlowWeight)
tableName - 表名indexName - 索引名queryFlowWeight - 查询流量权重列表。设置"源索引"和"重建索引"被查询时的流量分配权重,列表长度为2。
e.g. 设置权重为[(index1, 20), (index2, 80)],表示 20%的查询流量会打到index1,80%的查询流量会打到index2public 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时间
days - ttl, 参数单位是天public UpdateSearchIndexRequest setTimeToLive(int timeToLive, TimeUnit timeUnit)
索引数据的TTL时间。
public String getOperationName()
getOperationName in interface RequestCopyright © 2024. All Rights Reserved.